in reply to Perl and XPath.

use getNodeValue:
foreach my $node ($nodeset->get_nodelist) { print $node->getNodeValue, "\n\n"; }
See perldoc XML::XPath::Node::Attribute