in reply to Re: A puzzle for parsing XML with XML::Simple!
in thread A puzzle for parsing XML with XML::Simple!

++ for your solution, bobf,
but an offset for your assertion that "ForceArray won't do it"
because olus' solution (below) using FA *ALSO* does what the OP asked (for the data given).

Update: Careless monk has no excuse for the stricken section; replace with "olus' note -- also re 'KeyAttr' is also valuable." Duh! on me and thanks to both bobf and olus for catching this before it sat there any longer.

  • Comment on Re^2: A puzzle for parsing XML with XML::Simple!

Replies are listed 'Best First'.
Re^3: A puzzle for parsing XML with XML::Simple!
by bobf (Monsignor) on Jan 25, 2008 at 15:07 UTC

    I probably should have said I couldn't get ForceArray to do it in my tests, thereby leaving room for someone more clever than I to find a solution using that option.

    That said, olus' solution uses KeyAttr just as mine does, not ForceArray (olus++ for reading the docs). Am I missing something?