Finds elements or attributes by the specified Location Path interpreted against the specified context element and returns an array containing all values of the found elements or attributes.
Parameters:
element
If this parameter is not specified, the Location Path will be interpreted
against the generator context element, which is the same as the call:
contextElement.getValuesByLPath(lpath)
See Also: GOMContext.contextElement
lpath
Use the Location Path Builder (found at the left panel's tree) to quickly construct a Location Path needed for this parameter.
If no data items found or the specified context element is null
,
the function returns an empty array.
element.getValuesByLPath(lpath)
getValueByLPath(), checkValueByLPath(), collectValuesByLPath, findElementsByLPath(),
findChildren(), getAttrValues(), GOMElement.values
getValuesByLPath("link/@boss|link/@workers")
'boss'
and 'workers'
attributes
contained in all 'link'
children of the generator's current context element.
${include ../../../refs/lpaths.htm}