Home > Repositories > base > perl-XML-Filter-BufferText

perl-XML-Filter-BufferText: XML::Filter::BufferText - Filter to put all characters() in one event

This is a very simple filter. One common cause of grief (and programmer error) is that XML parsers aren't required to provide character events in one chunk. They can, but are not forced to, and most don't. This filter does the trivial but oft-repeated task of putting all characters into a single event.

Note that this won't help you cases such as:

blah phubar

In the above case, given the interleaving comment, there will be two character() events. This may be worked around in the future if there is demand for it.

An interesting way to use this filter, instead of telling users to use it, is to return it from your handler's constructor, already configured and all. That'll make the buffering totally transparent to them (XML::SAX::Writer does that).
Name:perl-XML-Filter-BufferText
Release: 1.01-4mamba
Group:System/Libraries/Perl
Maintainer:autodist
License:Artistic
Size:14.53 kB
Upstream URL:https://www.cpan.org/
Build time:2024-03-27 12:55:24
Binary packages and requirements
x86_64i586
Built RPMSperl-XML-Filter-BufferText
perl-XML-Filter-BufferText
Build requirementsperl-XML-Sax-Base [1]
perl-devel [1]
perl-XML-Sax-Base [1]
perl-devel [1]
History of changes
DatePackagerReleaseDescription
2024-03-27Automatic Build System 1.01-4mamba- automatic rebuild by autodist
2012-11-13silvan1.01-3mamba- perl 5.16 mass rebuild
2008-11-05silvan1.01-2mamba- automatic rebuild by autodist
2008-09-15gil1.01-1mamba- package created by autospec