JDOM XMLOutputter - exception thrown with illegal character 0x10
843834Feb 8 2003 — edited Feb 9 2003Hi all,
I am trying to write a XML file using JDOM and a XMLOutputter.
However, when I add a particular element to the outputter, the JDOM throws an IllegalDataException saying that character 0x10 (i.e. ISO character 16) is not allowed.
When I comment out this particular element, the rest of the file saves absolutely fine and I can see that other characters below 0x20 are being escaped properly in to their XML forms.
I have tried changing the encoding type, tried using CDATA or Text types and I have had no success so far.
Can anybody shed any light? I really can't see why the outputter doesn't seem to want to escape this character. Thanks very much in advance.
Kind regards,
Steven Read.