Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

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

Array<Xml> myXml.Remove()

Removes all nodes on specified xpath or current node 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

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