http://qs321.pair.com?node_id=1214728


in reply to Parsing two XML at the same time and align them

Hello corfuitl,

> Any suggestions?

Yes! avoid XML::Simple

I'm used with XML::Twig and you can profit twig_handler to trap your id

You can use a hash to store results, as in:  $res{ $filename."\t".$id } = [] so during the parsing of the two files you can push there first result from file1 and then results from file2.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.