I have this XSD file:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="
http://www.example.com/dnavigator"
xmlns:xs="
http://www.w3.org/2001/XMLSchema"
xmlns:jaxb="
http://java.sun.com/xml/ns/jaxb"
xmlns:dn="
http://www.example.com/dnavigator"
attributeFormDefault="unqualified"
elementFormDefault="qualified"
jaxb:version="2.0">
<xs:annotation>
<xs:appinfo>
<jaxb:globalBindings enableJavaNamingConventions="true"/>
</xs:appinfo>
</xs:annotation>
<xs:element name="DynamicNavigators">
<xs:complexType>
<xs:sequence>
<xs:element name="DynamicNavigator"
type="dn:DynamicNavigator"
minOccurs="1"
maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
</xs:documentation>
<xs:appinfo>
<jaxb:property name="DynamicNavigators"/>
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="DynamicNavigator">
<xs:sequence minOccurs="0"
maxOccurs="unbounded">
<xs:element name="example"
type="xs:string"
minOccurs="1"
maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
I want that the class DynamicNavigator that will be generated, extends the
class com.example.MyClass
How can I do it?
Thank you.
--
View this message in context: http://old.nabble.com/Generate-java-classes-from-XSD-using-JAXB-that-extends-existing-class-file-tp32155047p32155047.html
Sent from the java.net - jaxb dev mailing list archive at Nabble.com.