The XML Declaration is officially not considered a processing instruction,
and can't be treated as one.

DOM Level 3 is planning to add calls to retrieve information from the XML
Declaration (xmEncoding,  xmlStandalone, xmlVersion, inputEncoding), Xerces
probably has a beta/prototype of that functionality; I haven't checked
recently. DOM3 Core is a PR right now; I'm not sure when it might become a
REC. Of course this wouldn't be portable to systems that don't implement
DOM3, but it should be more portable than the XNI alternative.

I don't know what plans, if any, exist to update the SAX standard.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk


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

Reply via email to