The attributes() function

This function concatenates the attributes for an element and returns the serialization.

attributes(); 
 

Example 8.13. attributes()

For the following XML fragment:<element att1="x" xmlns:a="2" x="&quot;"/> the attributes() function will return att1="x" xmlns:a="2" x=""".