in reply to Finding node with attribute XML::LibXML
use strict; use warnings; use XML::TreeBuilder; my $doc = XML::TreeBuilder->new(); $doc->parse_file("minimal.xml"); my @vol = $doc->look_down(_tag => 'Volume', VolumeCategory => 'L'); # also tried various quoting scheme... my $tmp = scalar(@vol); print "Number of entries: $tmp \n"; # 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Finding node with attribute XML::Twig
by Discipulus (Canon) on Oct 01, 2014 at 08:03 UTC |