execute

This topic describes the syntax and usage of the executeXPath function in Zoho Creator

Description

The executeXPath function returns the formated string from the given xml and xpath

Syntax

<xml>.executeXPath(<string>)

where,

<xml> is the variable of type XML/string that holds the XML/JSON document

<xpath> is the xpath expression to select the specific nodes in an XML document

Return Value

Returns the formated string from the given xml and xpath

Example

resp = postUrl("https://creator.zoho.com/api/xml/applications/", loginDet);
appsList = resp.executeXPath("/result/application_list/applications");