Generate Java Source From XML Schema (XSD) : JAXB « JDK 6 « Java






Generate Java Source From XML Schema (XSD)



<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="item" type="Item"/>
    <xsd:complexType name="Item">
        <xsd:sequence>
            <xsd:element name="code" type="xsd:string"/>
            <xsd:element name="name" type="xsd:string"/>
            <xsd:element name="price" type="xsd:double"/>
        </xsd:sequence>
    </xsd:complexType>
</xsd:schema>



           
       








JAXBGenerateJavaSourceFromXSD.zip( 2 k)

Related examples in the same category

1.simple jaxb
2.Marshal Java object to xml and output to console
3.Marshal Java object to a file
4.JAXB Demo
5.From XML Schema to Java Generic List
6.JAXB XML Schema Enum and Java Enum
7.Unmarshall From XML using JAXB
8.Set Target Name Space To Be Java Package Name