DriveWorks Pro 15: 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 that returned from SppXmlLoad or SppXmlFromString.

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

Path is case sensitive

Attribute Name is the name of the attribute.

Value is new the value of the attribute.

Examples

RuleMeaning
SppXmlSetAttributeValue(DWVariableXMLFromString,"Bom\Items\Item","Qty",12)Will set value of the attribute Bom\Items\Item\Qty to be 12.

Table of Contents