File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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