Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] Retrieving encoding from XML file content

MARRIS V

2005-02-16

Replies:

Hi,
I am a newbie in XML. I have a requirement where in i have to read in the encoding from the source XML file and set the encoding accordingly,
Right now, i am hardcoding to UTF-16 /UTF-8 for certain feed assuming that it is going to match with the encoding of the source.

Is there any way through JDOM API where we can retrievethe encoding from an XML file.

Thanks in advance.

Regards,
Sriram
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.