restriction enumeraction

Discussion in 'XML' started by sk, Jun 6, 2006.

  1. sk

    sk Guest

    I am trying to assign the restriction to a perticular element using schema

    There is some way to force to select one of three countries?

    <xs:element name="iims0001" >
    <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>
     
    sk, Jun 6, 2006
    #1
    1. Advertising

  2. sk

    sk Guest

    Sorry it works the way i wanted.


    "sk" <> wrote in message news:Vwlhg.14819$771.2759@edtnps89...
    > I am trying to assign the restriction to a perticular element using schema
    >
    > There is some way to force to select one of three countries?
    >
    > <xs:element name="iims0001" >
    > <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>
    >
    >
    >
     
    sk, Jun 6, 2006
    #2
    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. =?Utf-8?B?RWQ=?=

    file restriction - Forms authentication

    =?Utf-8?B?RWQ=?=, May 31, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    382
    Jim Cheshire [MSFT]
    Jun 1, 2004
  2. =?Utf-8?B?Q2hyaXN0aWFuIE51bmNpYXRv?=

    Scripted Window Restriction?

    =?Utf-8?B?Q2hyaXN0aWFuIE51bmNpYXRv?=, Oct 5, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    404
    =?Utf-8?B?Q2hyaXN0aWFuIE51bmNpYXRv?=
    Oct 5, 2004
  3. z f
    Replies:
    2
    Views:
    5,102
  4. Manglu
    Replies:
    1
    Views:
    996
    Anders =?iso-8859-1?Q?Engstr=F6m?=
    Aug 8, 2003
  5. Zhao

    Restriction in interface

    Zhao, Oct 24, 2003, in forum: Java
    Replies:
    2
    Views:
    311
    John C. Bollinger
    Oct 24, 2003
Loading...

Share This Page