Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Relating data parsed with XMLSimple

by rovf (Priest)
on Mar 30, 2010 at 11:09 UTC ( #831809=note: print w/replies, xml ) Need Help??

in reply to Relating data parsed with XMLSimple

Your way of defining the XML structure seems to be questionable to me. As it was already pointed out, you don't have a name-number association in your code. Maybe you can trick XML::Simple into returning something you will like better, by passing the option

forcearray => [ 'Data' ]
to XMLin(), but if you have the chance to influence the design of this piece of XML, I suggest that you redesign it.

Ronald Fischer <>

Replies are listed 'Best First'.
Re^2: Relating data parsed with XMLSimple
by mohan2monks (Beadle) on Mar 30, 2010 at 11:32 UTC

    This typ of data is received by Web service call with SOAP Lite.

    However i cannot even change the module to parse XML as this is old code which was already working and need to fix it.

    From CPAN i found that may be XML::Twig can be used to sort this out.

      I do not think there is any mix of options that would convince XML::Simple to preserve the "relation" between Names and Phones.

      Enoch was right!
      Enjoy the last years of Rome.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://831809]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2018-05-25 21:09 GMT
Find Nodes?
    Voting Booth?