[XML-SIG] how to get the 'codepage' from a xml document

"Martin v. L÷wis" martin@v.loewis.de
Thu, 09 Jan 2003 18:53:12 +0100

Remy C. Cool wrote:
> I've probably overlooked something in the manuals and references, but 
> I can't find a method on how to extract the codepage/encoding 
> declaration from an xml file using sax.

You haven't overlooked anything: SAX does not provide this information 
(as it doesn't provide a lot of other lexical information).

Notice that in the presence of external entities, "the" encoding is not 
a meaningful term: different encodings might be used in different parts 
of the document.