Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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


Comment on Re: Relating data parsed with XMLSimple
Select or Download Code
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://831809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-12-27 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls