in reply to getAttribute() of XML::XPath::Node
An element is a node (though a node is not necessarily an element). Your query returns a list of nodes which are also elements. So getAttribute() works. Different methods are valid depending on what type of node it is (element, attribute, etc.). If your query returned a list of attributes, you might call nodeName() and getValue() on them.