in reply to Unknown number of XML nodes

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,

loris


"It took Loris ten minutes to eat a satsuma . . . twenty minutes to get from one end of his branch to the other . . . and an hour to scratch his bottom. But Slow Loris didn't care. He had a secret . . ."