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

SppXmlGetElementChildlist

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

Syntax

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

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 value for the 6th Item).

Show Duplicates is TRUE to show duplicate children (Adds 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.

Examples

RuleMeaning
SppXmlGetElementChildlist(DWVariableXMLLoad,"Quote",TRUE,TRUE)Will return a list of child element names in the XML file for the given path.

Table of Contents