Home Search

DriveWorks Pro 22
SppXmlRemoveAttribute

Send Feedback

SppXmlRemoveAttribute

Will return and XML formatted object with a specific attribute removed.

Syntax

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

Where:

XML is an object such as that returned from SppXmlLoad or SppXmlFromString, or XML as a text string.

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.