TheJoey
04-04-2010, 12:07 PM
I currently have a schema which using this:
<xs:element name="choose" type="choiceoption"/>
<xs:simpleType name="choiceoption" use="required">
<xs:restriction base="xs:string">
<xs:enumeration value="Choice1"/>
<xs:enumeration value="Choice2"/>
</xs:restriction>
</xs:simpleType>
only problem is i dont know how to apply it to my XML document
<root>
<choose>
ChoiceNotavaible
</choose>
</root>
this parses as correct or is enumeration value for attributes?
thats i just need some clarification and understanding of this.
and what is the proper way to link a schema.
<xs:element name="choose" type="choiceoption"/>
<xs:simpleType name="choiceoption" use="required">
<xs:restriction base="xs:string">
<xs:enumeration value="Choice1"/>
<xs:enumeration value="Choice2"/>
</xs:restriction>
</xs:simpleType>
only problem is i dont know how to apply it to my XML document
<root>
<choose>
ChoiceNotavaible
</choose>
</root>
this parses as correct or is enumeration value for attributes?
thats i just need some clarification and understanding of this.
and what is the proper way to link a schema.