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


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.


SppXPathGetElementAttributes([XML],[Element Path])


XML is an XML object such as that returned from SppXMLFromString or SppXMLLoad, or XML as a text string.

Element Path is a full path to the element inside the XML object (for example; Quote\Items). 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[2] to return the value for the second item).

Element Path is case sensitive.


SppXPathGetElementAttributes(DWVariableXMLFromString,"BOM\Items\Item\Qty")Will return an array of the element attributes from the element path BOM\Items\Item\Qty.

Table of Contents