|The stupid question is the question not asked|
Relating data parsed with XMLSimpleby mohan2monks (Beadle)
|on Mar 30, 2010 at 10:04 UTC||Need Help??|
mohan2monks has asked for the
wisdom of the Perl Monks concerning the following question:
Dear Monks, I am working on a old code which uses XMLSimple to parse XML data.
I have a data set in which i need to relate the tags by occurance like Phone tag if followed by preceding Name tag then it is related to it.
I can't do this with XMLSimple as the data structure it returns creates the keys of Name tag and Phone tag thereby grouping the data related to them.
Please see this example
From this i can't make out which phone number is associated with which name, Please help.
Out of sheer desperation may be i can use this
But how do i make that lazy ? operator match more than one phone tag till the next Name tag :-(