Illustration of Different Node Trees for XML (W3C(XT)/IE5)

John Cowan cowan at
Fri Apr 9 23:03:55 BST 1999

Chris Lovett wrote:

> (2) IE5 gives you all PI's.  I don't see why the <?xml delcaration is not a
> valid PI for representation in your DOM.  What if you want to change the
> encoding and save the document back out ?

The XML declaration and text declaration look like PIs to SGML engines,
but they aren't, per the XML rec.  They don't have the same syntax,
occurrence constraints, etc.

John Cowan		cowan at
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list