How to use Restriction

Discussion in 'XML' started by SP, Oct 11, 2005.

  1. SP

    SP Guest

    Hi,
    I'm trying to write a correct xsd using restriction.
    I've the follow XML:
    <root>
    <a>10</a>
    <b>10,54</b>
    <c>2005-10-12</c>
    <d>
    <aa>test</aa>
    <bb>test2</bb>
    </d>
    <d>
    <cc>test3</cc>
    <bb>test</bb>
    </d>
    </root>

    I want a xsd that use restriction to: maxLeength of a element and
    the cardinality ( minOccurs,maxOccurs) of the element, and some pattern
    as date.

    Now I can write a correct xsd?
    SP, Oct 11, 2005
    #1
    1. Advertising

  2. The following W3C Schema primer describes the basics:
    http://www.w3.org/TR/xmlschema-0/

    --
    Stan Kitsis
    Program Manager, XML Technologies
    Microsoft Corporation

    This posting is provided "AS IS" with no warranties, and confers no rights.

    "SP" <> wrote in message
    news:...
    > Hi,
    > I'm trying to write a correct xsd using restriction.
    > I've the follow XML:
    > <root>
    > <a>10</a>
    > <b>10,54</b>
    > <c>2005-10-12</c>
    > <d>
    > <aa>test</aa>
    > <bb>test2</bb>
    > </d>
    > <d>
    > <cc>test3</cc>
    > <bb>test</bb>
    > </d>
    > </root>
    >
    > I want a xsd that use restriction to: maxLeength of a element and
    > the cardinality ( minOccurs,maxOccurs) of the element, and some pattern
    > as date.
    >
    > Now I can write a correct xsd?
    >
    Stan Kitsis [MSFT], Oct 12, 2005
    #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:
    355
    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:
    386
    =?Utf-8?B?Q2hyaXN0aWFuIE51bmNpYXRv?=
    Oct 5, 2004
  3. z f
    Replies:
    2
    Views:
    5,042
  4. Manglu
    Replies:
    1
    Views:
    962
    Anders =?iso-8859-1?Q?Engstr=F6m?=
    Aug 8, 2003
  5. Dietmar Gräbner
    Replies:
    1
    Views:
    369
    Priscilla Walmsley
    Jul 19, 2004
Loading...

Share This Page