in reply to XML::Parser and multiple results

Maybe I get it wrong, but if you have
<output> ... </output> <output 2> </output 2>
that is not xml. what you can try is transform your illformed xml to valid xml and parse again.
<output> ... </output> <output> </output>
this whould be fine. Or if you need the number
<output> ... </output> <output id="2"> </output>
Boris