From: sgunderson@bigfoot.com <> Date: Thu, 1 Mar 2007 16:00:04 +0000 (+0100) Subject: Add a note about non-reentrancy. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4b535ab27b0ed5f16d28808bb7014f7623c2ef13;hp=dfad6289eecf15fd22a71cbaac496de9cbcd3cc9;p=xml-template Add a note about non-reentrancy. --- diff --git a/perl-sax/XML/TemplateSAX.pm b/perl-sax/XML/TemplateSAX.pm index aba8c21..e5e6e40 100644 --- a/perl-sax/XML/TemplateSAX.pm +++ b/perl-sax/XML/TemplateSAX.pm @@ -14,7 +14,10 @@ # - You can no longer insert a DOM tree, naturally. Instead, you can set up # an XML::TemplateSAX::Buffer, let it gobble up your data, and send it # in the way you'd insert a DOM tree. process_file_to_buffer does this -# transparently for you, returning a buffer you can give in. +# transparently for you, returning a buffer you can give in. (In theory, +# one could avoid the buffering and just defer the parsing/filtering until +# it's needed, but Expat seems non-reentrant, which means starting a parser +# from within a begin_element callback blows up.) # use strict;