Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by Discipulus (Canon)
on May 17, 2018 at 11:49 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1214728]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-03-29 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found