force uniqueness in xml schema

Discussion in 'XML' started by Robert Ludewig, Jun 28, 2004.

  1. <LinkList>
    <Link ID="A01" />
    <Link ID="A02" />
    <Link ID="A03" />
    <Link ID="A01" />
    </LinkList>

    How can I specify in a xmlschema that in the linklist are no occurences with
    same ID ?
    (Last Link is illegal)
     
    Robert Ludewig, Jun 28, 2004
    #1
    1. Advertising

  2. Robert Ludewig wrote:

    > <LinkList>
    > <Link ID="A01" />
    > <Link ID="A02" />
    > <Link ID="A03" />
    > <Link ID="A01" />
    > </LinkList>
    >
    > How can I specify in a xmlschema that in the linklist are no occurences with
    > same ID ?
    > (Last Link is illegal)


    Use the type xs:ID for the attribute named ID.

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Jun 28, 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. Ognen Ivanovski
    Replies:
    0
    Views:
    947
    Ognen Ivanovski
    Jul 15, 2003
  2. Olaf Meyer

    XML schema uniqueness constraints

    Olaf Meyer, Jan 15, 2004, in forum: XML
    Replies:
    0
    Views:
    507
    Olaf Meyer
    Jan 15, 2004
  3. Victor
    Replies:
    3
    Views:
    978
    Martin Honnen
    Feb 6, 2004
  4. Robert Ludewig

    force uniqueness with xml schema

    Robert Ludewig, Jun 28, 2004, in forum: XML
    Replies:
    1
    Views:
    431
  5. Adam Gardner
    Replies:
    5
    Views:
    147
    Sebastian Hungerecker
    Nov 19, 2008
Loading...

Share This Page