Home Search

DriveWorks Pro 21
SppXmlSetAttributeValue

Send Feedback

SppXmlSetAttributeValue

Will return an XML formatted object with a new attribute value.

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 the new 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.