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.
The moose likes Web Services and the fly likes Enumeration definition in XML Schema is redundant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Enumeration definition in XML Schema is redundant" Watch "Enumeration definition in XML Schema is redundant" New topic
Author

Enumeration definition in XML Schema is redundant

Juanito Lopez
Greenhorn

Joined: Apr 04, 2012
Posts: 1
Please just confirm (or refute) that this enumeration within a schema definition (.xsd file) is redundant,that's it, it could be deleted and the behaviour would be the same (due to the second simpleType in the union, just letting through anything being 5 characters long or less ):

[<simpleType name="decision">
<annotation>
<documentation>It will decide the flow</documentation>
</annotation>
<union>
<simpleType>
<restriction base="string">
<enumeration value="yes"/>
<enumeration value="no"/>
<enumeration value="maybe"/>
</restriction>
</simpleType>
<simpleType>
<restriction base="string">
<maxLength value="5"/>
</restriction>
</simpleType>
</union>
<simpleType>
][/code]

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enumeration definition in XML Schema is redundant
 
It's not a secret anymore!