This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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]

 
Consider Paul's rocket mass heater.
 
subject: Enumeration definition in XML Schema is redundant
 
Similar Threads
base type of token
xml schema: child elements in "choice"
SOAP Message Validation
WSDL2JAVA Apache axis
Error in xml schema