f9385e58_XML__Twig_Quick_Reference__parse
[$string or \*OPEN_FILEHANDLE] $opt_filehandle print the document so far and release the memory for all output elements. Don't forget to flush one last time after the parsing is done to output the end of the document [parse] 
flush
XML::Twig Quick Reference
parse