Information from the XML declaration is already stored in the DOM [1][2][3] (since DOM Level 3). Within the API the values have an effect on serialization, in-memory well-formedness checking and in-memory validation.
[1] http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Document3-version
[2] http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Document3-encoding
[3] http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Document3-standalone
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
"Mukul Gandhi" <gandhi.mukul@gmail.com> wrote on 09/20/2008 08:24:54 AM:
> Hi all,
> I wrote the following blog post. This is perhaps a weird thought,
> for people having worked with XML for long.
>
> http://mukulgandhi.blogspot.com/2008/09/should-we-include-version10-
> in-xpath.html
>
> This is a short description of the points I have in mind.
>
> Could you please let us know, if my logic have any merit.
>
> --
> Regards,
> Mukul Gandhi