You can use the default casting functions to convert an SQL base type to the XML UDT. The XML Extender also provides an the Update() function, which updates specified element and attribute values throughout an XML document.