Re: [xml] Premature end of data in tag

Gavin Sherry writes:

Useful information attached this time. Document encoding as follows:

<?xml version = "1.0" encoding="UTF-8" standalone="no"?>

Well the character displayed in the error message is 027 (octal)
or #x17 (hex) which is some Ascii Control Character (my man page names it
'ETB' whateverthatis).

Given that allowed characters are 
Char    ::=    #x9 | #xA | #xD | [#x20-#xD7FF] |
    [#xE000-#xFFFD] | [#x10000-#x10FFFF]
#x17 is not an allowed character in xml, and this applies to CDATA also.

If you parse a xml file, I suggest you have a close look at the bytes
at the erroneous part of the text, eg. using 'od -c' (on unix of course) 
which helps a lot seeing control charaters that are possibly hidden by 
other tools.
If this character is not found in the xml file, then something strange
is going on in xmllint.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]