Re: [xml] correct way to output HTML without the <?xml...



<John Hockaday ga gov au> writes:

Nic,

An XML document instance must have an xml declaration otherwise it is not
valid XML.

One more thing... the XML decl does not infer validity. Only a DTD or
schema can infer validity.

The decl is simply required by XML 1.1 to state the version of XML
being used. XML 1.0 doesn't require it because 1.0 is assumed.


Nic



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]