|
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. |