Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Parsing two XML at the same time and align them

by Discipulus (Abbot)
on May 17, 2018 at 11:49 UTC ( #1214728=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2020-12-01 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?