Click here to Skip to main content
15,881,413 members
Articles / Programming Languages / XML

Delete an XML node using the node name

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
24 Aug 2011CPOL 13.7K  
Can't you do the same thing without the need for a select statement?XElement xElement = XElement.Load(path);xElement.Elements ("Node").Remove();xElement.Save(path);

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
23 Aug 2011b4usat 1 alternative  
How to delete an XML node using its name.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student
Wales Wales
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions