Bobo (archive)
Usenet Archive
- Joined
- Jul 11, 2003
- Messages
- 20
- Reaction score
- 0
I am getting the following error while trying to process an XML string with unicode in its content.
[Fatal Error] :12:0: An invalid XML character (Unicode: 0x0) was found in the eement content of the document.
SAXException: org.xml.sax.SAXParseException: An invalid XML character (Unicode:0x0) was found in the element content of the document.
The piece of code that generates this error is the following:
DOMParser parser = new DOMParser;
ByteArrayInputStream bais = new
ByteArrayInputStream(xmlString.getBytes);
InputSource input = new InputSource(bais) ;
XMLDocWriter docwriter = new XMLDocWriter;
parser.parse(input); // <== right here is where I get this error at run time
Could you please give me a piece of advise what to do? I am pretty new to XML. I am using apache xerces java API.
Any help or hint would be appreciated!
Yung
[Fatal Error] :12:0: An invalid XML character (Unicode: 0x0) was found in the eement content of the document.
SAXException: org.xml.sax.SAXParseException: An invalid XML character (Unicode:0x0) was found in the element content of the document.
The piece of code that generates this error is the following:
DOMParser parser = new DOMParser;
ByteArrayInputStream bais = new
ByteArrayInputStream(xmlString.getBytes);
InputSource input = new InputSource(bais) ;
XMLDocWriter docwriter = new XMLDocWriter;
parser.parse(input); // <== right here is where I get this error at run time
Could you please give me a piece of advise what to do? I am pretty new to XML. I am using apache xerces java API.
Any help or hint would be appreciated!
Yung