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


Returns a pipebar (|) delimited string of child element names in an XML string, names for given element path.


SppXPathGetElementChildlist([XML],[Element Path],[Show Duplicates],[Only Show Children that have Children])


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

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\Customer[6] to return the value for the sixth item.

Element Path is case sensitive.

Show Duplicates is TRUE to show duplicate children (will add an index to the name), FALSE to only show one instance of each same name child.

Only Show Children that have Children is TRUE to only show children that have children, FALSE to show all children.


SppXPathGetElementChildlist(DWVariableXMLFromString,"BOM\Items\Item",TRUE,FALSE)Will return the string Quote Z Desc | PartNumber as the children of the element Item.

Table of Contents