[jdom-interest] CDATA problem
Stan Hartin
Shartin at triactive.com
Tue Jan 30 12:58:29 PST 2001
Hello all:
Using beta 5 and the Xerces parser, how do I get around this error?
Thanks,
Stan
Data from XML file:
<something><![CDATA[Windows NT®]]></something>
Code:
// Build a document
Document doc = builder.build(instream);
Error message:
**Parsing Fatal Error**
Line: 206
URI: null
Message: An invalid XML character (Unicode: 0xae) was found in the CDATA
section.
org.jdom.JDOMException: Error encountered: Error encountered
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:320)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:337)
at
com.triactive.inv.InventoryProcessor.main(InventoryProcessor.java:115)
Root cause: org.xml.sax.SAXException: Error encountered
at
com.triactive.inv.InventoryErrorHandler.commonError(InventoryErrorHandler.ja
va:71)
at
com.triactive.inv.InventoryErrorHandler.fatalError(InventoryErrorHandler.jav
a:54)
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1037)
at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume
ntScanner.java:643)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1351)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:302)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:337)
at
com.triactive.inv.InventoryProcessor.main(InventoryProcessor.java:115)
More information about the jdom-interest
mailing list