[jdom-interest] Using the Oracle Parser with JDOM B6
Jason Hunter
jhunter at collab.net
Wed Mar 14 12:53:53 PST 2001
There's no PIs in the file containing "xml". My best guess is the
Oracle parser is treating the <?xml version="1.0"?> declaration like a
PI. I don't have the Oracle parser on my system to confirm.
Note I just updated the builder samples to be more modern. That won't
affect this though.
-jh-
Carsten Karkola wrote:
>
> I tried to change from xerces to the oracle parser, the example
> java samples.DOMBuilderDemo \
> samples\namespaces.xml
> works fine, but
> java samples.DOMBuilderDemo \
> samples\namespaces.xml \
> org.jdom.adapters.OracleV2DOMAdapter
> fails with
> org.jdom.IllegalTargetException: The target "xml" is not legal for
> JDOM/XML Processing Instructions: Processing instruct
> ions cannot have a target of "xml" in any combination of case.
> at
> org.jdom.ProcessingInstruction.<init>(ProcessingInstruction.java:136
> )
> at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java:485)
> at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java:398)
> at org.jdom.input.DOMBuilder.build(DOMBuilder.java:359)
> at
> samples.DOMBuilderDemo.testBuilder(DOMBuilderDemo.java:134)
> at samples.DOMBuilderDemo.main(DOMBuilderDemo.java:171)
>
> The reason for changing the parser is the use of SchemaValidation.
> Is there a project for an DOMAdapter class using Oracle V2 parser
> with xmlschema support?
>
> Thanks, carsten
> ==================================================
> ==
> == Dipl.-Ing. Carsten Karkola
> ==
> == TU Dresden - Dez.4; SG 4.2
> ==
> == Tel.: +49 351 463 7817
> == Fax: +49 351 463 7179
> == e-mail: karkola at rcs.urz.tu-dresden.de
> ==
> ==================================================
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list