0
Answer

Delete in Xml

bert_cox

bert_cox

20y
1.6k
1
If I want to delete a contact in XML using C# I can do this: XmlNode deleteContact = contactDoc.SelectSingleNode("descendant::Contact[FirstName='Sanddy']"); contactDoc.DocumentElement.RemoveChild(deleteContact); But I want to make a textbox where I give in the name and then that person is deleted, but I can't find how to do it. Thx in advance