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

SppXmlGetElementAttributes

Returns an array value based on a row per attribute (Name, Value) for each attribute of an XML element given the path to the XML element

Syntax

SppXmlGetElementAttributes([XML], [Element Path])

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\Customer). If the element is part of an array with the same name, the path would need to use an instance number (For example Quote\Items\Item\6 to return the attributes for the 6th Item).

Examples

RuleMeaning
SppXmlGetElementAttributes(DWVariableXMLLoad,"Quote\CompanyName")Will retrieve the attributes from the path Quote\CompanyName in the XML loaded in the variable DWVariableXMLLoad.

Table of Contents