Click here to Skip to main content
11,703,438 members (68,551 online)
Click here to Skip to main content
Articles » Languages » XML » General » Alternatives
Alternatives (1)

Tagged as

Delete an XML node using the node name

, 23 Aug 2011 CPOL 24.7K 2
How to delete an XML node using its name.


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

24 Aug 2011
George Swan
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);


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


About the Author

India India
No Biography provided

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.150819.1 | Last Updated 23 Aug 2011
Article Copyright 2011 by b4usat
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid