If the current node is an element, return its attributes as a range of triplets
(prefix, name, value); if the current node is the document node, return the attributes
of the xml declaration (encoding, version, ...); otherwise, returns an empty array.
If the current node is an element, return its attributes as a range of triplets (prefix, name, value); if the current node is the document node, return the attributes of the xml declaration (encoding, version, ...); otherwise, returns an empty array.