>The XML declaration is not a processing instruction, it only looks like
one.

True. See the DOM FAQ's answer on this (at http://www.w3.org/DOM/faq.html).

>It really isn't appropriate for it be to in the DOM since it describes how
>the document is encoded in a particular file.

Not quite so true. It isn't handled in current versions of the DOM, but DOM
Level 3 intends to add fields to handle this information.

>The appropriate thing is to have your serializer code (which is the only
>thing that knows what encoding you are using) write the XML declaration to
>the file.

True for now. Or "manually" write that data to the output stream before you
start running the serializer.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to