
13 Jul
2007
13 Jul
'07
3:09 p.m.
Jake Voytko wrote:
http://www.w3.org/TR/REC-xml/#sec-prolog-dtd Am I misinterpreting this section? It looks like it allows comments in the header
You must be misinterpreting it. There is no such thing as a header. The prolog consists of the xml declaration and the document type declaration, both optional. <?xml ... ?> <!DOCTYPE ...> After the xml decl and after the dtdecl, the grammar allows misc, which can include comments. But it doesn't allow comments inside the xml decl, nor in the dtdecl, except in the internal subset. Sebastian Redl