Xml.Remove

Overview

Removes current node and returns in array.

Array<Xml> myXml.Remove()

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

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

Arguments

string xpath

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

Example

Remove all customer nodes

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

Copyright © 2010 - 2023 Emakin. All rights reserved.