Click here to Skip to main content
11,489,292 members (74,244 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 23.2K 2
How to delete an XML node using its name.

Alternatives

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);

License

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

Share

About the Author

b4usat

India India
No Biography provided

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