XContainer.RemoveNodes Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Removes the child nodes from this document or element.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
If you call this method on an element that contains attributes, this method will not remove the attributes. To remove the attributes of an element, use RemoveAttributes.
The Remove method has related functionality. It removes the child nodes of every node in a collection.
Show: