XML::LibXML
- wrapper around libxml2
my $parser = XML::LibXML->new(); my $doc = $parser->parse_fh($filename); my $type = $doc->findvalue('//greeting/@type'); say "greeting type: $type";
my $parser = XML::LibXML->new(); my $doc = $parser->parse_fh($filename); my $type = $doc->findvalue('//greeting/@type'); say "greeting type: $type";