[jdom-interest] Retrieving encoding from XML file content

MARRIS V marrisv at loveable.com
Wed Feb 16 09:55:41 PST 2005

  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.

Sign-up for Ads Free at Mail.com

More information about the jdom-interest mailing list