[jdom-interest] Problems with "<" and ">" in element.addContent()
spierre at isb-sib.ch
Wed Jan 2 06:09:34 PST 2002
Le mercredi 2 janvier 2002, à 12:18 PM, Ann Björklund a écrit :
> I have a problem when I try to add content included the
> signs "<" and ">" to an element.
> I write:
> and then use a XMLOutputter to write it out to a file.In my
> file I got the result
> I want to have "<" instead of "<" and ">" instead of ">".
> Does anyone know what Iím doing wrong?
I think you should then use the CDATA class. Something like:
The thing is that XML does not allow < outside of a CDATA
element, thought > should be ok anywhere.
«Life begins at the centerfold and expands outward.»
<http://www.type-z.org> -- Miss November, 1966
More information about the jdom-interest