A schema question

Discussion in 'XML' started by Lin Shen, Aug 13, 2004.

  1. Lin Shen

    Lin Shen Guest

    Hi,

    I want to write a schema to describe the following xml:

    <A>
    <B/>
    <C/>
    <D/>
    </A>

    where,

    1) <B>, <C> and <D> can be listed in any order
    2) <B> is optional and can occur at most once.
    3) <C> is required and must occur exactly once.
    4) <D> is required and can occur more than once.

    thanks
    lin
    Lin Shen, Aug 13, 2004
    #1
    1. Advertising

  2. Lin Shen

    Abhinav Guest

    Lin Shen wrote:

    > Hi,
    >
    > I want to write a schema to describe the following xml:
    >
    > <A>
    > <B/>
    > <C/>
    > <D/>
    > </A>
    >
    > where,
    >
    > 1) <B>, <C> and <D> can be listed in any order


    use the all construct

    > 2) <B> is optional and can occur at most once.


    minOccurs="0"

    > 3) <C> is required and must occur exactly once.
    > 4) <D> is required and can occur more than once.


    maxOccurs="unbounded"

    Check out http://w3schools.org for a gentle but useful intro to schemas.

    HTH

    --
    Abhinav
    Abhinav, Aug 16, 2004
    #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. Markus
    Replies:
    1
    Views:
    1,494
    Markus
    Nov 23, 2005
  2. Klaus Johannes Rusch

    Re: Convert DB2 schema to XML Schema

    Klaus Johannes Rusch, Aug 6, 2003, in forum: XML
    Replies:
    0
    Views:
    548
    Klaus Johannes Rusch
    Aug 6, 2003
  3. Brett Selleck

    Schema Metadata not a Metadata Schema

    Brett Selleck, Sep 4, 2003, in forum: XML
    Replies:
    1
    Views:
    397
    Andy Dingley
    Sep 4, 2003
  4. Fred Smith
    Replies:
    1
    Views:
    921
    Martin Honnen
    Feb 5, 2004
  5. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,166
    Stanimir Stamenkov
    Apr 25, 2005
Loading...

Share This Page