DriveWorks Pro 15: SppXPathRemoveElement [send feedback...]

SppXPathRemoveElement

Returns an XML formatted object with a specific element removed.

Syntax

SppXPathRemoveElement([XML],[Element Path])

Where:

XML is an XML object such as that returned from SppXMLLoad or SppXMLFromString, or XML as a text string.

Element Path is a full path to the element inside the XML object (for example Quote\Customer). If the element is part of an array with the same name, the path would need to use an instance number (for example Quote\Customer[6] to return the value for the sixth item.

Element Path is case sensitive.

Examples

RuleMeaning
SppXPathRemoveElement(DWVariableXMLFromString,"BOM\Items\Item\Qty")Will return an XML object with the element Qty removed.

Table of Contents