[jdom-interest] Special characters in XML?

Ken Rune Helland kenh at csc.no
Fri Mar 16 04:24:29 PST 2001


At 11:25 AM 3/16/2001 +0000, Gary Bentley wrote:
>That's partly it...I am looking for the characters that I cannot use as
>content in my XML documents...i.e. the ones I have to replace with entities!
>I know that I have to replace < with &lt;, does the outputter also convert >
>as well???
>
>Cheers,
>
>G.

If you are building the XML with JDOM just set the text you want in the
element text/attribute values and XMLOutputter will escape illegal
characters with their defined entities.


KenR




More information about the jdom-interest mailing list