I'm having a problem to check if the element with some attributes exists. I will explain.. I have the following code
XDocument xDocument = XDocument.Parse(member.getProperty(itemlist).Value.ToString());
xDocument.Root.Add(new XElement(
"Item",
new XAttribute("Text", texts),
new XAttribute("Value", values)));
member.getProperty(itemlist).Value = xDocument.ToString();
member.Save();
Well all I need you guys to understand is that simple - I convert something into my XDocument (witch is a xml) and I simple add a new item on it with some attributes. But now there is my issue. I want to do this : If that item with that attributes exists DELETE , if not ADD . How can I do this test? Thanks anyway all.