pb schema XML

Discussion in 'XML' started by ART, Jan 22, 2004.

  1. ART

    ART Guest

    I would like validate those XML doc

    <a>
    <b/>
    </a>
    --------------------------
    <a>
    <c/>
    </a>
    --------------------------
    <a>
    <b/>
    <c/>
    </a>
    --------------------------

    but not
    <a/>


    Thanks !!!
    ART, Jan 22, 2004
    #1
    1. Advertising

  2. ART

    Peter Flynn Guest

    ART wrote:
    > I would like validate those XML doc
    >
    > <a>
    > <b/>
    > </a>
    > --------------------------
    > <a>
    > <c/>
    > </a>
    > --------------------------
    > <a>
    > <b/>
    > <c/>
    > </a>
    > --------------------------
    >
    > but not
    > <a/>


    <?xml version="1.0"?>
    <!DOCTYPE a [
    <!ELEMENT a ((b,c?)|c)>
    <!ELEMENT b EMPTY>
    <!ELEMENT c EMPTY>
    ]>
    <a>
    <b/>
    <c/>
    </a>

    ///Peter
    Peter Flynn, Jan 24, 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,499
    Markus
    Nov 23, 2005
  2. Fred Smith
    Replies:
    1
    Views:
    928
    Martin Honnen
    Feb 5, 2004
  3. Hari Om
    Replies:
    1
    Views:
    452
    Martin SChukrazy
    Mar 2, 2004
  4. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,173
    Stanimir Stamenkov
    Apr 25, 2005
  5. Replies:
    3
    Views:
    2,801
Loading...

Share This Page