Menu

#1 parsing xml file w/ doctype declaration

open
nobody
None
5
2002-07-26
2002-07-26
No

I am making use of JOX in an e-commerce application to
submit orders to a third party vendor. The xml response
returned by the vendor contains a doctype declaration
(e.g., "<!DOCTYPE XML_Order_Response SYSTEM
"XML_Order_Response.dtd" >") that seems to be
generating the following error:

java.io.IOException: Error parsing XML document: The
root element is required in a well-formed document.
at
com.wutka.jox.JOXSAXBeanInput.readObject(JOXSAXBeanInput.java:40)
at
com.wutka.jox.JOXBeanInputStream.readObject(JOXBeanInputStream.java:78)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB