in reply to Re^2: Data structure question from XML::XPath::XMLParser
in thread Data structure question from XML::XPath::XMLParser

> The manual page for XML::XPath::Node::Element

The manual page for XML::XPath::Node::Attribute has the rest.

print join(", ", map $_->toString, $node->getAttributeNodes),"\n";

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^4: Data structure question from XML::XPath::XMLParser
by mldvx4 (Hermit) on Mar 30, 2021 at 09:25 UTC

    All set now, thanks for the help!

    for my $attr ($node->getAttributes) { print $attr->getName,"\t"; print $attr->getNodeValue,"\n"; }