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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top