Set Target Name Space To Be Java Package Name : JAXB « JDK 6 « Java






Set Target Name Space To Be Java Package Name



<schema xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:Revealed="http://www.java2s.com"
    targetNamespace="http://www.yourNameSpace.com">

   <simpleType name="Location">
      <restriction base="string">
         <enumeration value="north"></enumeration>
         <enumeration value="south"></enumeration>
         <enumeration value="east"></enumeration>
         <enumeration value="west"></enumeration>
      </restriction>
   </simpleType>
</schema>



           
       








JAXBSetTargetNameSpaceToBeJavaPackageName.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.Generate Java Source From XML Schema (XSD)