[jdom-interest] Using the Oracle Parser with JDOM B6

Carsten Karkola karkola at Rcs1.urz.tu-dresden.de
Wed Mar 14 07:30:25 PST 2001


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
==
==================================================



More information about the jdom-interest mailing list