Skip to content

XmlNode.Remove

Overview

XmlNode[] XmlNode.Remove ( [ xpath ] )
Removes all nodes on specified xpath or current node and returns removed nodes in array.

Arguments

String xpath XPath of nodes to remove. If not specified current node is used.

Remarks

Examples

Remove all customer nodes

var deletedCustomers = $Xml.Remove('//Customer');

See Also