in reply to Parsing extremely large XML files

Checkout XML::Twig, "A perl module for processing huge XML documents in tree mode". (See also XML::Twig website).