How to prevent duplicate value of an element(primary key) in xml?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ratnakar_Srivastava
Posted On:   Wednesday, December 10, 2003 03:08 AM

I am using XML as data Storage and I want to avoid duplicate value of an element in a xml document.

I have XML as follows:

<?xml version="1.0"?>


10
abc


10
xyz



In above XML I have the same empid how I prevent it. But i want to use it as primary key (no duplicate)How could I acheive this?
Is there anything in DTD or schema that will prevent it?

About | Sitemap | Contact