65.9K
CodeProject is changing. Read more.
Home

Delete an XML node using the node name

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Aug 24, 2011

CPOL
viewsIcon

14179

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

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