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

SppXmlRemoveAttribute

Will remove a specific attribute from XML data.

Syntax

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

Where:

XML is an object such as that returned from SppXmlLoad or SppXmlFromString.

Element Path is a full path to the element inside the xml object (For example, Quote\CustomerName).

Attribute Name is the name of the attribute to be removed. If left blank all attributes will be removed.

Element Path and Attribute Name are case sensitive

Examples

RuleMeaning
SppXmlRemoveAttribute(DWVariableXMLFromString,"Quote\CustomerName","id")Will return an array with the attribute id removed from the path Quote\CustomerName.

Table of Contents