Skip to main content

XML value from path

Extract value from the provided XML path.

Example
<!-- Configuration -->
Path: /hello/country

<!-- XML node passed as input -->
<hello>
<country>France</country>
</hello>

<!-- Output -->
France

Parameters​

Pathrequired

The path to the value to extract from the XML. See XML path.

Skip if not found

If the path is not found — or the extracted text cannot be parsed into the configured value type — the function will be skipped instead of failing.

Value typerequired

The expected value type from the extraction. See all types. Two special cases:

  • XML: emits the matched node itself instead of its text.

  • Array: emits all matching nodes as an array of XML nodes. Fails (XMLPathNotFound) when no node matches.

Any other type parses the matched element's text content.

Input​

XML Node

required
The XML node to extract the value from.

Output​

Value

The value extracted from the XML matching the configured value type.