XML-Encoding - How to identify XML encoding format after parsing xml file.

Posted on Fri Jul 4 14:23:06 2008 by krishnareddyvaka
How to identify XML encoding format after parsing xml file.
I am using jre1.4.2_05 and Weblogic 8.1 version and i have a problem with finding encoding format of xml file. I need to parse a xml file and need to find which encoding format that xml is based on that i need to change logic. Need to know after parsing each xml file what encoding format the xml is? Here the problem is we are using jre1.4.2_05 by default DOM \ SAX parser is not supported and i looked at few third party parser which are also don't have facility. But in latest jre 1.5 or jdk1.5 has this feature. Its difficult to the project to upgrade to jre1.5 or more. Please let us know if you have answers for the above question.
Write a response