Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Updated Nov 21, 2024
Send us feedback
xpath_string
Applies to: Databricks SQL Databricks Runtime
Returns the contents of the first XML node that matches the XPath expression.
xpath_string(xml, xpath)
xml: A STRING expression of XML.
xml
xpath: A STRING expression that is a well formed XPath.
xpath
The result is STRING.
The function raises an error if xml or xpath are malformed.
> SELECT xpath_string('<a><b>b</b><c>cc</c></a>','a/c'); cc
xpath function
xpath_boolean function
xpath_double function
xpath_float function
xpath_long function
xpath_number function
xpath_int function
xpath_short function