Berin Loritsch <[EMAIL PROTECTED]> writes:
> You are probably the victim of an XML parser getting more strict with
> the XML spec.
>
> Having comments outside the root element of a document is _not_ well
> formed, and any XML parser is free to reject that. If you move those
> comments INSIDE the root element, you should also lose the exceptions.
Is this true? The production rules for XML 1.0 (second edition) say:
[1] document ::= prolog element Misc*
^^
This is the root element.
[22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?
[27] Misc ::= Comment | PI | S
No comments are allowed before the XML declaration, but they are allowed
directly behind it and before the beginning of the root element.
Otherwise 90% of my XML documents would be invalid.
--
Martin Holz <[EMAIL PROTECTED]>
Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin