[jdom-interest] Issue with Jdom parsing control character

Laurent Bihanic laurent.bihanic at atosorigin.com
Tue Nov 6 02:31:28 PST 2007


Hi,

Abhishek Parwal wrote:
> When i try to parse the control chars the following exception occurs:
> 
> org.jdom.input.JDOMParseException: Error on line 1: Character reference
> "" is an invalid XML character. at
...
> Caused by: org.xml.sax.SAXParseException: Character reference "" is an invalid 
XML character.
> 
> Please guide how to reasolve this problem.

The error is reported by the underlying XML parser (Xerces). There is an 
invalid character (NUL?) in the received XML document.
The list of allowed characters in XML is defined here : 
http://www.w3.org/TR/REC-xml/#charsets

Laurent


More information about the jdom-interest mailing list