This module provides a way to process XML documents. It is built on top of XML::Parser. . The module offers a tree interface to the document, while allowing to output the parts of it that have been completely processed. . It allows minimal resource (CPU and memory) usage by building the tree only for the parts of the documents that need actual processing, through the use of the twig_roots and twig_print_outside_roots options. The finish and finish_print methods also help to increase performance. . XML::Twig tries to make simple things easy so it tries its best to takes care of a lot of the (usually) annoying (but sometimes necessary) features that come with XML and XML::Parser.