Search

Module:Editor

Version:18.08 +

Type:all types

Category:Text

 

Description

The formula 'ReadXPathVector' evaluates an XPathExpression and returns a vector with the results.

Parameters

XmlNode:

The XmlNode  for which the XPath query is evaluated

XPathExpression:

The XPath expression  to evaluate

ReturnDefaultIfEmpty:

If set to true, the formula will return the default value if an element node is empty

ReturnDefaultIfAbsent:

If set to true, the formula will return an empty vector if no node is found

Description

The formula gives the same result as you would get from an XmlField with Rank = 1 that is placed under the same XmlNode as you use as the parameter.

Performance impact

Note that using the ReadXPathVector can impact the performance of your application. Especially in situations where the XPath is complex this can cause a drop in the performance. So use this formula with care. If you experience performance problems find out whether this is caused by using the ReadXPathVector formula, and try to find an alternative to retrieve the data you want. 

Related Topics

- XmlField

- ReadXPathScalar

Updated: 2018-08-02