http://www.perlmonks.org?node_id=483283


in reply to XML Parser clobbering Multiple occurances of element

A brief check of SOAP::Lite's documentation shows that you probably want to call paramsout in list context: my @rows = $soap->paramsout(), or you want to use valueof with an XPath for each row - e.g., //ROW[0], //ROW[1], and //ROW[2]. Looking at all this, I'm thinking it'd be easier/more straight forward to take the XML and pump it through XML::Twig to get a reasonable object-oriented output rather than the hashes - XML::Twig handles so-called "duplicate" entries in a very straight-forward manner, IMO.

Replies are listed 'Best First'.
Re^2: XML Parser clobbering Multiple occurances of element
by Random_Walk (Prior) on Aug 12, 2005 at 14:27 UTC

    Hi Tanktalus

    I already tried paramsout and paramsall in list context with a  print "paramsall: ", (join ", ", $response->paramsall) which just shows the one solitary object, the same that result returns. I am now going to take a look at XML::Twig and gellyfish's hint to look at the SOAP::SOM docs.

    Thanks for the help,
    R.

    Pereant, qui ante nos nostra dixerunt!