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