Home > Repositories > base > perl-XML-Filter-BufferText (i586)

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
Architecture:i586
Group:System/Libraries/Perl
Size:11.52 kB
Upstream URL:https://www.cpan.org/
Source RPM:perl-XML-Filter-BufferText
BrothersProvidesObsoletesRequiresRecommends
perl(XML::Filter::BufferText) = 0:1.01
perl-XML-Filter-BufferText = 0:1.01-4mamba
perl-XML-Filter-BufferText(x86-32) = 0:1.01-4mamba
perl >= 0:5.36.0 [1]
perl(XML::SAX::Base) [1]
perl(base) [1]
perl(strict) [1]
perl(vars) [1]
Provided files