HomeGuidesRecipesAPI
HomeGuidesAPILog In

Data Parse Action

The data parse action extracts a single value from an XML or JSON string, usually for passing as an input to another action.

📘

Note:

The Data Parse action requires SmartIQ version 13.5+ and license module 9031.

Using the Action

In Design, configure the action inputs as per the table below:

NameDescription
File FormatChoose from XML/JSON (Default JSON)
DataA reference to an XML/JSON string to parse
XpathAn Xpath or JPath term that targets the value to be extracted.
1464

In Produce, enter the following XML Data/XPath combination which results in the term ‘Harry Potter’. I.e. the first title of lang ‘en’.

590
TypeContent
Data


Harry Potter
J K. Rowling
2005
29.99

Xpath//title[@lang='en'][1]

This should result in "Harry Potter" showing in the Produce Finish page.

503