Comment 20 for bug 316373

Revision history for this message
In , 12cool725 (12cool725) wrote :

(In reply to Malcolm Rowe from comment #1)
> Just as a guess, it's not a valid XML 1.0 document (it's not), and we don't
> have an XML 1.1 parser. XML 1.0 parsers can't parse XML 1.1 documents under
> any
> circumstances, as far I can see.
>
> We could change this bug into a RFE to start using an XML 1.1 parser, but I
> think that would depend upon support in a future version of the Expat parser
> (XML 1.1 support isn't in Expat 1.2, the current stable version, nor is it
> planned for Expat 2.0, which is in development, or event Expat 3.0). See
> http://www.libexpat.org/dev/roadmap.html for more information.

Actually, according to the W3C, an XML 1.0 parser will parse any 1.x document as 1.0
"Note:

When an XML 1.0 processor encounters a document that specifies a 1.x version number other than '1.0', it will process it as a 1.0 document. This means that an XML 1.0 processor will accept 1.x documents provided they do not use any non-1.0 features." -- Quoted from http://www.w3.org/TR/xml/#xmldoc
So even if you can't parse XML 1.1 per se, that still doesn't mean you can't just treat it as XML 1.0 . I do still recommend somehow adding XML 1.1 support, though.