المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Duplicate record in XML



C# Programming
09-14-2009, 09:34 PM
I use C# and storing data in XML file. the problem is that how can i avoid xml file to save duplicate record. in table it can be detected using Primary Key but how can i do it in xml.
e.g. in xml file i saved ProductID=1, next time when i try to save ProductID=1, it should automatically alert me that Key already exists.
help please