in reply to
XML::LibXML count nodes
Use XPath function
count
:
my $count = $doc->findvalue("count(//category)");
[download]
Comment on
Re: XML::LibXML count nodes
Select
or
Download
Code
In Section
Seekers of Perl Wisdom