xerces-j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Beyer" <nbe...@gmail.com>
Subject Re: Question regarding getting xml document encoding type
Date Thu, 10 Jan 2008 03:31:31 GMT
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. <lynn.huynh@unisys.com> 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: j-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-dev-help@xerces.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


Mime
View raw message