Parsing xml containing character reference

Posted by Shefali Dubey on Stack Overflow See other posts from Stack Overflow or by Shefali Dubey
Published on 2010-04-14T09:25:16Z Indexed on 2010/04/14 9:33 UTC
Read the original article Hit count: 377

Filed under:
|

The XML im trying to parse contains a control character 0x2 inside CDATA. I tried to replace it with character reference which led to CDATA looking like:

CDATA section----charcter reference----CDATA section

Now if i try to parse it i get an error message saying: org.xml.sax.SAXParseException: Content is not allowed in prolog.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about sax