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

SppXPathRemoveAttribute

Returns an XMLobject with specified attribute(s) removed.

Syntax

SppXPathRemoveAttribute([XML],[Element Path],[Attribute Name])

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.

Attribute Name is the name of the attribute to be removed, if left blank or "" is used then all attributes will be removed.

Examples

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

Table of Contents