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


Returns an XMLobject with specified attribute(s) removed.


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


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.


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

Table of Contents