Skip to content

Remove

Removes current node and returns in array.

1
myXml.Remove():Array<Xml>

Removes all nodes on specified xpath and returns removed nodes in array.

1
myXml.Remove(xpath: string):Array<Xml>

Parameters

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

Remarks

Remove all customer nodes

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

See Also