XmlLookup Function

  • Updated

The XmlLookup function returns the value referenced by an XPath from an XML document or string.

Syntax 1

 

The XmlLookup function returns the value referenced by an XPath from an XML document or string.

 

XmlLookup(xmlDocument, xpathQuery)

 

 

Arguments:

 

 

 

xmlDocument

DataElement - An XML document.

 

 

xpathQuery

String - The XPath query to be run.

Syntax 2

 

The XmlLookup function returns the value referenced by an XPath from an XML document or string.

 

XmlLookup(xmlString, xpathQuery)

 

 

Arguments:

 

 

 

xmlString

String - A string expression containing XML.

 

 

xpathQuery

String - The XPath query to be run.

Syntax 3

 

The XmlLookup function returns the value referenced by an XPath from an XML document or string.

 

XmlLookup(xmlDocument, xpathQuery, default)

 

 

Arguments:

 

 

 

xmlDocument

DataElement - An XML document.

 

 

xpathQuery

String - The XPath query to be run.

 

 

default

Any - The default return value if no matching result.

Syntax 4

 

The XmlLookup function returns the value referenced by an XPath from an XML document or string.

 

XmlLookup(xmlString, xpathQuery, default)

 

 

Arguments:

 

 

 

xmlString

String - A string expression containing XML.

 

 

xpathQuery

String - The XPath query to be run.

 

 

default

Any - The default return value if no matching result.

Remarks

  • Example: XmlLookup(XmlDocument1, "/Loan/LoanID", "Not Found") returns "Not Found".

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.