Are these three XSD the same?

R

RC

<xs:simepleType name="myType1">
<xs:restriction base="xs:string">
<xs:enumeration value="boolean" />
<xs:enumeration value="integer" />
<xs:enumeration value="double" />
<xs:enumeration value="string" />
</xs:restriction>
</xs:simpleType>

<xs:simepleType name="myType2">
<xs:restriction base="xs:string">
<xs:pattern value="boolean" />
<xs:pattern value="integer" />
<xs:pattern value="double" />
<xs:pattern value="string" />
</xs:restriction>
</xs:simpleType>

<xs:simepleType name="myType3">
<xs:restriction base="xs:string">
<xs:pattern value="boolean|integer|double|string" />
</xs:restriction>
</xs:simpleType>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top