Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDOM and false "invalid XML character" problem

843834Aug 21 2001 — edited Aug 23 2001
I'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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2001
Added on Aug 21 2001
3 comments
514 views