minidom

Martin von Loewis loewis at informatik.hu-berlin.de
Thu Dec 6 06:01:51 EST 2001


Peter Hansen <peter at engcorp.com> 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.

Regards,
Martin



More information about the Python-list mailing list