Subject: | Some SAX events not handled |
I don't appear to be able to create CDATA using XML::SAX::Writer at the moment, because XML::Filter::BufferText doesn't know about the start_cdata and end_cdata events. The attached patch fixes this.
Without it, I end up with output like this from XML::SAX::Writer:
<foo><![CDATA[]]><dodgy>&<text></foo>
Thanks,
-Dom
--- /usr/local/lib/perl5/site_perl/5.8.0/XML/Filter/BufferText.pm.orig Sat Apr 5 17:24:28 2003
+++ /usr/local/lib/perl5/site_perl/5.8.0/XML/Filter/BufferText.pm Sat Apr 5 17:25:01 2003
@@ -38,6 +38,7 @@
sub end_element; sub processing_instruction; sub comment;
sub skipped_entity; sub ignorable_whitespace; sub end_entity;
sub start_entity; sub entity_reference;
+sub start_cdata; sub end_cdata;
1;
#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#