[jdom-interest] character entity resolution?

cocoonlist78 cocoonlist78 at hotmail.com
Thu Apr 25 15:26:00 PDT 2002

JDOM users:
  I'm not sure if this is related to JDOM or not but maybe someone has an idea:

  I'm creating a web interface for editing XML documents.  The form submits to a servlet that reads the existing XML document in and represents it with JDOM.  I use setText() on the various Elements to make changes based on the form data and then write out the new XML file with XMLOutputter.output().  Some of the form fields contain XML tags (for inline stuff like <italic> and <bold>).  Somewhere in the process those inline XML tags that are coming across the CGI are being changed from <italic> to &lt;italic&gt;.  This of course causes problems because when the XML file is parsed these tags are seen as strings rather than nodes.

I've used System.out to check the strings and I don't see any entity references as far as the servlet is concerned.  Maybe System.out resolves them...

Is there anything in the XMLOutputter.output()  or Element.setText() methods that resolves these characters to HTML entities?  Any ideas?  Suggestions?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20020425/1cf128c2/attachment.htm

More information about the jdom-interest mailing list