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 <ynnor@mm.st>

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.

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.