SAX2 1.1 Extensions has an interface called Locator2 [1] which extends
Locator providing methods for accessing the xml version and encoding of
entities. There's also a feature called 'is-standalone' which exposes
whether the document has been declared to be standalone. These extensions
currently have beta status but based on the revitalized discussion on
SAX for JAXP 1.3 they may be finalized fairly soon.

[1] http://www.saxproject.org/?selected=ext

On Thu, 26 Feb 2004, Joseph Kesselman wrote:

> 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]

---------------------------
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

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

Reply via email to