[jdom-interest] Special characters in XML?
cswilly at iname.com
Fri Mar 16 07:43:52 PST 2001
Not completely. The the XMLOutputter will only escape chars that mess-up the
XML parsing. It does not encode the chars which are 'invalid' for an XML
For example, if you set an attribute to have text with chars with values <
x020 then there is no encoding and when you reparse the file, your XML parse
> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Ken Rune Helland
> Sent: 16 March 2001 13:24
> To: Gary Bentley; Falk Fraikin; jdom-interest at jdom.org
> Subject: RE: [jdom-interest] Special characters in XML?
> 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 <, does the outputter
> also convert >
> >as well???
> 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.
> To control your jdom-interest membership:
dr at yourhost.com
More information about the jdom-interest