| <xs:simpleType name="integerList"> <xs:list itemType="xs:integer"/> </xs:simpleType> |
| <integerList>10 20 30 40</integerList> |
| <simpleType name="myUnion"> <union memberTypes="xs:int xs:string" /> </simpleType> |
Attribute memberTypes contains a list of one or more defined simple type names. The above example defines a type whose value is either the integer 1 or the string "One".
| <myUnion>1 One</myUnion> |
You can also define an anonymous simple type as a member type of a union. See the example below:
| <simpleType name="myUnion"> <union memberTypes="xs:string"> <simpleType> <restriction base="xs:int"> <minInclusive value="4" /> <maxInclusive value="8" /> </restriction> </simpleType> </union> </simpleType> |
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.