Java Mailing List Archive

http://www.junlu.com/

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

[jdom-interest] How to parse documents enclosed as text in another
 document...

frode

2005-09-30




In the attached file, There are one XML-doc encoded in UTF-8. In one Element (bizDoc) there is another document, also encoded as UTF-8.


This 'inner' document contains norwegian characters that are encoded.


When the parses reads the outer document, however, the norwegian character is decoded, thus the element bizDoc now contains information about an encoding that no longer exists. So when I create a Dcoument based on a StringReader from the bizDoc-element, the charachter is decoded again, and now contains something completely different than intended.


Is this possible to get correct at all, as long as my input is as is ?


Regards

Frode Halvorsen



Attachment: test1.fil
_______________________________________________
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.