SUBXML

This function returns an XML string consisting of the nodes of a larger XML string, selected using an XPath expression.

The resulting XML string can be used as the source for an Extract XML Collection action, for example, or used to build up more complex structures when passed as the child XML source to an XMLn() expression.

Return Type

String

Syntax

SUBXML( XMLsource, extractionPath )

Remarks

This function takes two arguments:

  • Argument 1 (XMLsource): An XML string. This can be obtained using an event action expression such as BODXML() or an XML-formatted string.
  • Argument 2 (extractionPath): An XPath expression specifying the nodes to be selected from the XML source. This value can be derived using an event action expression.