OPENXML UDF
Some parts in the output code are omitted for clarity reasons.
Description
This custom UDF is added to process a rowset view over an XML document. This would be used for declarations in because it works as a rowset provider.
Optional parameters and different node types are not supported in this version of the UDF. The element node is processed by default.
Custom UDF overloads
Parameters
XML: A
VARCHAR
that represents the readable content of the XML.PATH: A varchar that contains the pattern of the nodes to be processed as rows.
SQL Server
IN -> SqlServer_01.sql
Snowflake
The following example is isolated into a stored procedure because environment variables only support 256 bytes of storage, and the XML demo code uses more than that limit.
OUT -> SqlServer_01.sql
Related EWIs
Last updated