� (At) 16:03 -0600 27/10/02, Jeff Lowrey �crivait (wrote) :
I imagine that XML::Twig uses the standard Perl XML parser, which is a SAX parser rather than a DOM parser. That means that your handler events are going to get called as the parser encounters them - not when it has processed the full document. Which means that your 'formatfolder' is going to only get called when the parser encounters '</folder>' and not when it encounters '<folder>', or in some way that it could tell where the beginning of the '</folder>' tag was.
Ah, that's make sense. I'm resubscribing to the perl-xml mailing list and ask there if this is the case. <http://listserv.activestate.com/mailman/listinfo/perl-xml > I know that M. Rodriguez the author of XML::Twig is on this list. Thanks for your answer. I'll report back here if I get an answer on the perl-xml mailing list.
Cheers -Emmanuel -- ______________________________________________________________________ Emmanuel D�carie / Programmation pour le Web - Programming for the Web Frontier - Perl - PHP - Javascript - XML <http://scriptdigital.com/>
