{{tag>Function Function_List Text Version:v8.6}}
====== 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 [[:ref:a_f:a:find|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|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 ''Sydney'', this sets ''City'' to ''Sydney''.
===== Related =====
[[ref:a_f:f:af:parse_json|PARSE_JSON]], [[ref:a_f:f:af:parse_json2|PARSE_JSON2]]