I am getting this exception
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1a) was found in the element content of the document.
when parsing an XML document created using data retrieved from db2.
Does anyone know what the problem might be?
thank you
-
org.xml.sax.SAXParseException: An invalid XML character (Unicode (3 messages)
- Posted by: chip dale
- Posted on: July 15 2005 11:15 EDT
Threaded Messages (3)
- org.xml.sax.SAXParseException: An invalid XML character (Unicode by kalyani s on August 06 2005 14:27 EDT
- org.xml.sax.SAXParseException: An invalid XML character (Unicode by Ryan Thomas on August 12 2005 03:05 EDT
- org.xml.sax.SAXParseException: An invalid XML character (Unicode by Ryan Thomas on August 12 2005 03:11 EDT
- org.xml.sax.SAXParseException: An invalid XML character (Unicode by Ryan Thomas on August 12 2005 03:05 EDT
-
org.xml.sax.SAXParseException: An invalid XML character (Unicode[ Go to top ]
- Posted by: kalyani s
- Posted on: August 06 2005 14:27 EDT
- in response to chip dale
Hi
I am also facing the same problem.
please let me know if you have got any solution.
thanks in advance.
Kalyani -
org.xml.sax.SAXParseException: An invalid XML character (Unicode[ Go to top ]
- Posted by: Ryan Thomas
- Posted on: August 12 2005 03:05 EDT
- in response to kalyani s
I came across this problem a while ago, it was because the XML document that I was trying to parse contained a '&' character. I created a small validation function that replaced all of the &'s with '&' which fixed up the issue.
I have not found this with any other characters (although I'm sure that there are more out there).
HTH.
Ryan Thomas
TransActive Systems -
org.xml.sax.SAXParseException: An invalid XML character (Unicode[ Go to top ]
- Posted by: Ryan Thomas
- Posted on: August 12 2005 03:11 EDT
- in response to Ryan Thomas
I re-read your post and did a google on the 0x1a character. This is the control character SUB, I'm not sure what that's doing in there...
Best of luck solving it.
Ryan Thomas
TransActive Systems