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. Advertisements

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. Markus
    Replies:
    1
    Views:
    1,692
    Markus
    Nov 22, 2005
  2. Rick Razzano

    XSD document for XSD defintion

    Rick Razzano, Sep 26, 2003, in forum: XML
    Replies:
    1
    Views:
    718
    C. M. Sperberg-McQueen
    Sep 26, 2003
  3. Replies:
    1
    Views:
    1,214
    Martin Honnen
    Jan 14, 2004
  4. Peter Aberline

    xsd:any as a child of xsd:all

    Peter Aberline, Apr 5, 2004, in forum: XML
    Replies:
    0
    Views:
    1,029
    Peter Aberline
    Apr 5, 2004
  5. Bernd Oninger
    Replies:
    1
    Views:
    756
    Henry S. Thompson
    Jun 30, 2004
  6. xz
    Replies:
    4
    Views:
    424
    James Kanze
    Mar 16, 2008
  7. Replies:
    43
    Views:
    1,594
    Acmeous
    Nov 10, 2008
  8. KevinSimonson
    Replies:
    9
    Views:
    525
    Jorgen Grahn
    Nov 10, 2010
Loading...