in reply to Re: XML Twig - Isolate Element
in thread XML Twig - Isolate Element

OK, I've upgraded the module to 3.32 - and FLUSH works as I would have expect (but obv not as you intended !).

PRINT dumps out the header line for every row, which it also did under 3.- which is why I was using FLUSH.

Replies are listed 'Best First'.
Re^3: XML Twig - Isolate Element
by mirod (Canon) on Jan 03, 2008 at 18:00 UTC

    Sorry, I should have been more clear: you should print $record, not $nhf, this way you print exactly what you want, as GrandFather mentioned.

      Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.

      fx: Penny dropping

      Thanks both
Re^3: XML Twig - Isolate Element
by mirod (Canon) on Jan 04, 2008 at 16:28 UTC

    Well, would you know it, it appears that this is not a bug. I added this in 3.30, with a proper test (but apparently not too much docs apart from a comment in the code): when twig_roots are used, then the root is considered flushed, so flush will not output it.

    So your original code was Ok after all, and my answer should have been an easy "I know, upgrade the module, it's fixed in the current version". ;--)