xml declaration

Pardon me if my question is stupid but is there a way to access
the XML declaration (the <?xml... PI-like thing) through the DOM ?
I mean that it is impossible for an application built over the DOM
to know the encoding, the xml version and if the document is
standalone or not.

This is not a real problem for the moment, but if we have some day
a new version of XML, I'd like to have access to the version attribute
in order to correctly generate the output of a document tree...

</Daniel>

Received on Wednesday, 13 October 1999 08:13:47 UTC