From 4b535ab27b0ed5f16d28808bb7014f7623c2ef13 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Thu, 1 Mar 2007 17:00:04 +0100 Subject: [PATCH] Add a note about non-reentrancy. --- perl-sax/XML/TemplateSAX.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.2