[jdom-interest] Retrieving encoding from XML file content
jhunter at xquery.com
Wed Feb 16 10:31:27 PST 2005
SAXBuilder doesn't provide that info because SAX doesn't provide that
info. A different builder could be written (on XNI for example) that
exposed that information.
MARRIS V wrote:
> 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.
More information about the jdom-interest