The USXSL SetXml Method

Previous Next

See Also

With the USXSL SetXml method, you can set an alias name for an XML document. The method creates a map with parsed XML associated to the alias name. It returns an error if the XML document is invalid.

In the USXSL apply method, you can then refer to the XML document by using the alias name.

SELECT USXSL.setxml(<alias name>, <XML document>)

If the value for <XML document> is NULL then the XML document is removed from the map.

The parsed XML stays in memory until the SetXml method is called again with the same alias and an empty (NULL) XML document.

TIP:

If you need the same XML document more than once, using the SetXml method, and refer to it in the apply method may improve performance.