xmlcolattval creates an XML fragment and then expands the resulting XML so that each XML fragment has the name &column& with the attribute &name&. You can use the AS alias clause to change the value of the name attribute to something other than the column name.

You must specify a value for value_expr. If value_expr is null, then no element is returned.