Skip to Main Content

DevOps, CI/CD and Automation

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!

White Space Required (XML Parse Exception)

Lucas JellemaAug 15 2003 — edited Aug 15 2003
Hi,

I am using Oracle XDK 9.2.0.5.0, trying to parse an XML document. Making a subtle change to the document suddenly results in a:

oracle.xml.parser.v2.XMLParseException: Whitespace required.

exception. Does anyone have a clue where that exception can come from?

The Java code responsible for invoking the parse operation is as follows:

InputSource input = new InputSource( new FileInputStream(fileName)
DOMParser xp = new DOMParser();
xp.setValidationMode(xp.NONVALIDATING);
xp.setPreserveWhitespace(true);
xp.parse(input);

This works for many files, but not all.

Your help is highly appreciated.

Note: where is documentation on parse errors to be found?

best regards,

Lucas Jellema (AMIS)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2003
Added on Aug 15 2003
1 comment
1,593 views