RE: [xml-dev] SAX - not well formed data

From
Michael Kay <>
To
'Manos Batsis' <>, 'XML Developers List' <>
Date
2009-02-04T10:00:09
ID
<EC5C605A995044F29D2D4813D0AA10EA@Sealion>
Thread
RE: [xml-dev] SAX - not well formed data
> > It's not clear from that description why it isn't well-formed.
> 
> 
> The root element has an illegal name. 

The name <xml> isn't illegal, it is reserved for future standardization.
That is, the syntax is allowed (the document is well-formed, and all parsers
will accept it) but the semantics could give you trouble in the future.

It emerged that the well-formedness error lay in the meaning of the ellipsis
"...", which I assumed meant "and more well-formed content which I am
omitting for reasons of space" but which actually meant "and the document
ends abruptly here".

Michael Kay
http://www.saxonica.com/