snowflake.snowpark.functions.parse_xml¶ snowflake.snowpark.functions.parse_xml(e: Union[Column, str]) → Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.47.0/src/snowflake/snowpark/functions.py#L6929-L6954)¶ Parse the value of the specified column as a JSON string and returns the resulting XML document. Example: CopyExpand>>> df = session.sql( ... "select (column1) as v from values ('<t1>foo<t2>bar</t2><t3></t3></t1>'), " ... "('<t1></t1>')" ... ) >>> df.select(parse_xml("v").alias("result")).show() ------------------ |"RESULT" | ------------------ |<t1> | | foo | | <t2>bar</t2> | | <t3></t3> | |</t1> | |<t1></t1> | ------------------ Show lessSee moreScroll to top