snowflake.snowpark.functions.xpath¶
- snowflake.snowpark.functions.xpath(col: Union[Column, str], path: str) Column[source]¶
Extracts values from an XML column using an XPath expression.
Returns an array of strings containing all matches in document order. Returns an empty array if no matches are found.
- Parameters:
col – Column containing XML data (string or parsed XML)
path – XPath expression string
Example: