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

SppXmlSetAttributeValue

Will pass a value into an attribute within XMLdata.

Syntax

SppXmlSetAttributeValue([XML],[Path],[Attribute Name],[Value])

Where:

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

Path is a full path to the element, that contains the attribute, inside the XML object (For example, Quote\Customer). Element path is case sensitive

Attribute Name is the name of the attribute to set.

Value is new the value to set the attribute to.

Example

RuleResultMeaning
SppXmlSetAttributeValue(DWVariableXMLLoad,"Catalog","Lang","eng")Will set value of the specified attribute to the new value given.

Table of Contents