Help for this page
<world> <country short="usa" name="united state of america"> ... </country> </world>
use XML::LibXML::Reader; ... push @matchedNodes, $reader->copyCurrentNode(1); }