jaxb/xjc binding issue

F

frank

I have a problem and I can't seem to find an example on how to solve.
I'm trying to run jaxb/xjc on some schema that I don't own so I can't
change it. It has a few sub/reference schema's that it uses. The
problem is 2 of the sub schema's have the same complex type defined (so
it reports a conflict). No problem use custom bindings correct? But I
get errors when I try to do that.

[ERROR] "C:/data/JBFSA/r1/csds_src/config/dds.xsd" is not a part
of this compilation. Is this a mistake for
"file:/C:/data/JBFSA/r1/csds_src/config/dds.xsd"?


The schema I'm trying to compile xjc with is the dds.xsd

My binding file:
<?xml version="1.0" encoding="UTF-8"?>
<bindings version="2.0"
xmlns="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<bindings schemaLocation="C:/data/JBFSA/r1/csds_src/config/dds.xsd"
node="/xs:schema/xs:complexType[@name='geospatialCoverageType']">
<class name="geospatialCoverageTypeDDS"/>
</bindings>

<bindings schemaLocation="C:/data/JBFSA/r1/csds_src/config/dds.xsd"
node="/xs:schema/xs:complexType[@name='temporalCoverageType']">
<class name="temporalCoverageTypeDDS"/>
</bindings>

</bindings>


Thanks,

Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top