Try the Locator2 interface - http://java.sun.com/javase/6/docs/api/org/xml/sax/ext/Locator2.html
-Nathan On Jan 9, 2008 4:57 PM, Huynh, Lynn T. <[EMAIL PROTECTED]> wrote: > Hi, > I'm using SAX to parse XML documents, and have a need to know the > encoding type that was declared in the XML document. For example, if > the XML document has this: > <?xml version="1.0" encoding="UTF-8" ?> > > I would like to receive the "UTF-8". I'm a newbie to XML parsing. I've > searched, but not able to find out a way to get such information. Would > you please give me some suggestion as to what I can do to get this > information? > > Thank you in advance. > Lynn Huynh > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
