This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I want to define an element to type integer so we can do something like this ...
<xs:simpleType name="status"> <xs:annotation> <xs ocumentation>0=CLOSED</xs ocumentation> <xs ocumentation>1=OPEN</xs ocumentation> </xs:annotation> <xs:restriction base="xs:integer"> <xs:enumeration value="0"/> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> But the problem is this will not validate an xml <status></status>
Can anyone pl. tell me what I can use in XSD so that this gets validated Note: I cant add any thing in xml as its getting generated automatically