Skip Menu |

This queue is for tickets about the XML-Filter-BufferText CPAN distribution.

Report information
The Basics
Id: 2347
Status: new
Priority: 0/
Queue: XML-Filter-BufferText

People
Owner: Nobody in particular
Requestors: dom [...] happygiraffe.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.00
Fixed in: (no value)



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[]]>&lt;dodgy&gt;&amp;&lt;text&gt;</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; #,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#
Date: Sun, 06 Apr 2003 15:17:13 +0200
From: Robin Berjon <robin.berjon [...] expway.fr>
To: bug-XML-Filter-BufferText [...] rt.cpan.org
CC: dom [...] happygiraffe.net
Subject: Re: [cpan #2347] Some SAX events not handled
RT-Send-Cc:
Guest via RT wrote: Show quoted text
> This message about XML-Filter-BufferText was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=2347 > > > 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[]]>&lt;dodgy&gt;&amp;&lt;text&gt;</foo>
Yes, that's a known bug. I've promised (and will) take care of it as soon as I get my iBook back next week. Thanks for the patch, it'll avoid me having to actually put some thought into it ;) -- Robin Berjon <robin.berjon@expway.fr> Research Engineer, Expway http://expway.fr/ 7FC0 6F5F D864 EFB8 08CE 8E74 58E6 D5DB 4889 2488