Table of Contents

, , ,

PARSE_XML

Description

Parses the specified string in XML format and extracts a value according to the specified path

Syntax

PARSE_XML (xml, path)

Cannot be used in the condition of a FIND action.

Parameters

Attribute of the Plain Text type or string constant or calculation producing text identifying the string in XML format to parse and the path in XPath format (see https://www.w3.org/TR/1999/REC-xpath-19991116) identifying a value to be extracted from XML. Returns extracted value as a string

Returns

Text: the value at the XPath, as a string.

Example

Customer.City = PARSE_XML (Customer.Response, '/customer/address/city') 

If Customer.Response holds <customer><address><city>Sydney</city></address></customer>, this sets City to Sydney.

PARSE_JSON, PARSE_JSON2