I m learning to parse XML data using XML::LibXML::Reader. Is there a way to get the total number of nodes contained in the entire XML file of a particular element? My goal is to prompt the user of the advancement of the parsing process. To do this I need to know how many values will be in my while loop.
my $entry_pattern = 'XML::LibXML::Pattern'->new('/martif/text/body +/Entry'); while ($reader->nextPatternMatch($entry_pattern)) { ...
In reply to XML::LibXML::Reader get size by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |