The attributes() Function

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

attributes ( )

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=""".