xpath_booleanfunction

一個pplies to:check marked yesDatabricks SQLcheck marked yesDatabricks Runtime

Returnstrueif thexpathexpression evaluates totrue, or if a matching node inxmlis found.

Syntax

xpath_boolean(xml,xpath)

一個rguments

  • xml: A STRING expression of XML.

  • xpath: A STRING expression that is a well formed XPath.

Returns

一個n BOOLEAN.

The function raises an error ifxmlorxpathare malformed.

Examples

>SELECTxpath_boolean('1','a/b');true