JDOM and false "invalid XML character" problem
843834Aug 21 2001 — edited Aug 23 2001I'm using JDOM beta 7, and I have problems building certain XML documents when I try to read them from a URL using
SAXBuilder builder = new SAXBuilder();
document=builder.build(url);
I get an "invalid XML character (Unicode 0x13) was found in the element content of the document" error. However, I'm sure that there is no such character coming from the url -- I tried copying all characters from the stream into a file, and I can then properly do
File xFile = new File("test.xml");
document=builder.build(xFile);
I suspected a problem with conflicting classes from incompatible jar files, but I pulled the latest xerces.jar and crimson.jar from the Apache site, and ran with a specific classpath to make sure I wasn't loading some obsolete class from a different jar, and I still get the error (on certain xml files only).
Does this sound like a bug in the SAX parser, or conflicting libraries? Is there a better SAX parser to try to use?
Thanks in advance,
Rodney