[jdom-interest] JDOM and Oracle V2 Parser ?

Jason Hunter jhunter at collab.net
Fri Mar 30 01:22:14 PST 2001

Augenstein wrote:
> Hi JDOM-Gurus !
> I have reported the error to the ORACLE OTN discussion group. The ORACLE
> XML evangelist Steven Muench posted the following statement:
> <---
> I looked at the code of the JDOM OracleV2DOMAdapter and there is no code
> that would raise this error in the adapter.
> Perhaps the JDOM is incorrectly trying to create the XML Declaration by
> trying to create a processing intruction with target "xml", which is
> illegal in XML.
> Perhaps Xerces allows this.
> --->
> I would like to use the ORACLE XML development environment and JDOM.
> Is there any possibility to do this ?
> I hope somebody can help me!

What's happening is that for some reason the Oracle SAX parser is giving
a callback for a PI whose target is "xml", and that's an illegal target
per the XML spec so JDOM refuses to accept it.  My guess is the Oracle
parser is treating the document declaration <?xml version="1.0"?> as if
it was a PI because it looks like a PI even though doc decls explicitly
aren't PIs per the XML spec.  Most SAX handlers wouldn't notice this, so
Oracle probably hasn't heard of the bug, but JDOM does well-formedness
checking so this exposes their bug.


More information about the jdom-interest mailing list