Are these three XSD the same?

Discussion in 'XML' started by RC, Apr 8, 2009.

  1. RC

    RC Guest

    <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>
    RC, Apr 8, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. walker
    Replies:
    1
    Views:
    322
    Keith Thompson
    Nov 24, 2003
  2. abcd
    Replies:
    9
    Views:
    279
    Alex Martelli
    Mar 20, 2007
  3. xz
    Replies:
    4
    Views:
    283
    James Kanze
    Mar 16, 2008
  4. Replies:
    43
    Views:
    1,334
    Acmeous
    Nov 10, 2008
  5. KevinSimonson
    Replies:
    9
    Views:
    353
    Jorgen Grahn
    Nov 10, 2010
Loading...

Share This Page