in reply to Accessing node attribute with XML::XPath

Your query returns elements, and those have an getAttribute method.

If you wanted to go the xpath route, the xpath to the attribute node would be attribute::type, for which @type is a shortcut.

Replies are listed 'Best First'.
Re^2: Accessing node attribute with XML::XPath
by iteration (Initiate) on Nov 16, 2010 at 22:01 UTC
    Perfect. I see that $recording->getAttribute('type') or $recording->findvalue('@type') work. Thanks a lot, ~Oliver