[jdom-interest] Problem when creating document using xml String with NCR format characters
Zhiyong Zhang
zhiyong_zhang5 at yahoo.ie
Thu Jul 1 10:50:08 PDT 2004
I have a xml document using UTF-8 encoding, which
includes some characer using NCR format,like
北亰.
then i read this file (with encoding UTF-8) and
generate the xml Java String (Java Unicode encoding).
then i pass this xml String to the JDOM utility method
to convert this xmlString to JDOM Document object. The
codes looks like:
SAXBuilder builder = new SAXBuilder();
Document document = builder.build(new StringReader
(xmlString));
and then, i convert this document back to xml string
and rebuild the document, jdom complained that this
isnot an valid document. It seems that JDOM converting
the NCR formatted character to other thing, and
regards it as invalid document.
any advice will be appreciate.
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
More information about the jdom-interest
mailing list