I would use XML::LibXML. Once you have parsed the XML and got hold of the root node, you can then do something like:
my $name = 'NameOfTheNodeYouAreInterestedIn'; my @matchingNodes = $rootNode->findnodes('//' . $name);
Of course the XPath argument to findenodes may be a lot more complicated than my example.
HTH,
In reply to Re: Unknown number of XML nodes
by loris
in thread Unknown number of XML nodes
by MonkPaul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |