force uniqueness in xml schema

R

Robert Ludewig

<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)
 
M

Martin Honnen

Robert said:
<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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top