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

Remy C. Cool dev-xml@smartology.nl
Thu, 9 Jan 2003 16:14:38 +0100


Hi,

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.

ie a file with the following declaration:
<?xml version="1.0" encoding="iso-8859-15" standalone="no"?>

How do I get the encoding attribute?

Regards,
Remy