Skip to main content

XML attribute from path

Extract attribute from the provided XML path.

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

<!-- XML node passed as input -->
<hello>
<country lang="fr">France</country>
</hello>

<!-- Output -->
fr

Parameters

PathREQUIRED

The path to the node from which you want to extract the attribute.

KeyREQUIRED
The attribute key you want to extract.
Skip if not found

If the attribute is not found, the function will be skipped.

Value type

The expected value type from the extraction. See all types.

Input

Any type convertible to XML

Output

Value

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