in reply to Re: Getting into a SAX frame of mind
in thread Getting into a SAX frame of mind

You missed the requirement of having the file name derived from the names of ancestors. You'd need to add someting like:

$file = join '_', map { $_->first_child_text('name') } $node->ancestor +s( 'node' ); # still need to add name from root/name

(Which I know you know, but for the OP's benefit.)

qq, a Twig fan

Replies are listed 'Best First'.
Re: Re: Re: Getting into a SAX frame of mind
by mirod (Canon) on Jan 23, 2004 at 23:02 UTC

    Oops! I missed the 's' at the end of 'elements' Thanks.

    I forgot to mention BTW that the nice thing about the above code is that at most you keep one node in memory.