XPath Query
Category: Core
This activity allows you to easily extract information from an XML-formatted string. Instead of having to use complicated regular expression to parse XML, you can use an XPath to traverse the XML’s structure and extract the data you want. These paths can be simple (/root/someProperty
) or complex (/root/row[username = 'ehowell']/email
).
Hints
- Some XML contains namespaces to help describe the content. The
XPath Query
activity can be configured to understand namespaces by adding them under theNamespaces
section of its properties.
Helpful Links
Sample Workflows
The following sample workflows are available in our repository’s workflows folder to help you get familiar with this activity. These can be imported using the instructions here or you can view the workflow in GitHub by clicking on it.