<[EMAIL PROTECTED]> writes:

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

This is not true, John.

An XML 1.1 document MUST have an XML decl. Here is the relevant para
from http://www.w3.org/TR/2004/REC-xml11-20040204/#NT-prolog:

  2.8 Prolog and Document Type Declaration

  [Definition: XML 1.1 documents MUST begin with an XML declaration
  which specifies the version of XML being used.] For example, the
  following is a complete XML 1.1 document, well-formed but not valid:


  <?xml version="1.1"?>
  <greeting>Hello, world!</greeting> 

  but the following is an XML 1.0 document because it does not have an
  XML declaration:


  <greeting>Hello, world!</greeting>



Nic Ferrier
http://www.tapsellferrier.co.uk
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to