Posted on 2008-10-04 14:16:16-07 by nothung
problem with twig_roots and flushing
Hi, i have some documents with a structure like
<root> <para> ... para-stuff </para> ... more para's <table> ... table-stuff </table> ... more para's and tables. </root>
so i've set the twig_roots as follows:
twig_roots => { "para" => 1, "table" => 1, }
and added the corresponding twig_handlers. At the end of the para-handler and the table-handler i use flush to flush up to this point (or that is what i thought). But when it gets to the table-handler, the element is already flushed. Maybe i dont understand the underlying system, but i thougth this was the right way to do a memory-efficient parsing. Can anyone help me understand my error? Thanks in advance.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.