Pinned topic Problems in having uniquenes constraint
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
I am having an XML file which contains information about some tests. I have created schema for this xml file and have assigned testNumber as primary key. Even after this constraint , I am able to insert duplicate values in the TestNumber node of xml file. How can I enforce that duplicate values of TestNumber (a node in my xml file) are not allowed.
Updated on 2004-03-02T01:41:53Z at 2004-03-02T01:41:53Z by SystemAdmin
SystemAdmin 110000D4XK76 Posts
Re: Problems in having uniquenes constraint2004-03-02T01:41:53ZThis is the accepted answer. This is the accepted answer.To specify uniqueness via an XML schema, use the "unique" element. More information can be found at http://www.w3.org/TR/xmlschema-0/#specifyingUniqueness
http://www.xmlpatterns.com - Develop effective DTDs and XML Schema documents for your XML using structural design patterns.