S
sk
I have a question about the xml schema.
If I assigned the restriction to a element like the following
you have to choose from among three countries.
Can I change this schema so that I can select from one of three countries
or I put what every I want.
I use "any" somewhere?
<xs:element name="CountryName" >
<xs:simpleType>
<xs:restriction base="xs:string" >
<xs:maxLength value="50" />
<xs:enumeration value="France" />
<xs:enumeration value="Mexico" />
<xs:enumeration value="China" />
</xs:restriction>
</xs:simpleType>
</xs:element>
If I assigned the restriction to a element like the following
you have to choose from among three countries.
Can I change this schema so that I can select from one of three countries
or I put what every I want.
I use "any" somewhere?
<xs:element name="CountryName" >
<xs:simpleType>
<xs:restriction base="xs:string" >
<xs:maxLength value="50" />
<xs:enumeration value="France" />
<xs:enumeration value="Mexico" />
<xs:enumeration value="China" />
</xs:restriction>
</xs:simpleType>
</xs:element>