If you
want to parse a XML file(in my case : very large XML file) and do certain modifications to its elements. you have another handy option:
XML::Twig
twig_handlers is the method you look for to process a large file without loading it in memory, see XML_Twig_101_Processing_an_XML_document_chunk_by_chunk
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.