Martin von Loewis loewis at
Thu Dec 6 12:01:51 CET 2001

Peter Hansen <peter at> writes:

> > That is not true. Presence of the XML declaration is not a validity
> > constraint in XML.
> Is it not required in any way at all?  I always thought 
> it was.

Production 22 of XML says

  prolog    ::=    XMLDecl? Misc* (doctypedecl Misc*)?

So no, it is not required in anyway. The only reason you need it is
when you have to declare an encoding, or the standalone property.


More information about the Python-list mailing list