in reply to Re^3: Parse multiple xml tags with different names to an array
in thread Parse multiple xml tags with different names to an array
With all your help , I am able to get the child nodes as an array using the code below :
my $parser = XML::LibXML->new(); my $doc = $parser->parse_string($string); my @nodes = $doc->findnodes("//ROOT_TAG/*"); Is there any possible ways to do this ?
The resultant array elements of @nodes are all XML::LibXML::Elements object. I need this to be hash for my processing. Is there any way to do this ?
Thanks,
Bala.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Parse multiple xml tags with different names to an array
by Anonymous Monk on Sep 25, 2013 at 08:44 UTC | |
by rbala (Acolyte) on Sep 25, 2013 at 10:03 UTC |