I am usualy one to help with genral questions, but this seems a bit to homew(or|rec)k-ish ... all i will suggest is that
XML::Parser would be a very good place to start. As for a good place for general XML/Perl stuff,
perl.com is usually ok.
i had a memory leak once, and it ruined my favorite shirt.