Query: xml::filter::buffertext
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BufferText(3pm) User Contributed Perl Documentation BufferText(3pm)NAMEXML::Filter::BufferText - Filter to put all characters() in one eventSYNOPSISmy $h = SomeHandler->new; my $f = XML::Filter::BufferText->new( Handler => $h ); my $p = SomeParser->new( Handler => $f ); $p->parse;DESCRIPTIONThis 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: <foo> blah <!-- comment --> phubar </foo> 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).AUTHORRobin Berjon, robin@knowscape.comCOPYRIGHTCopyright (c) 2001-2002 Robin Berjon. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.SEE ALSOXML::SAX::*, XML::Generator::*, XML::Handler::*, XML::Filter::* perl v5.10.0 2003-07-04 BufferText(3pm)
Related Man Pages |
---|
test::xml::sax(3pm) - debian |
xml::filter::buffertext(3pm) - debian |
xml::filter::distributor(3pm) - debian |
xml::handler::canonxmlwriter(3pm) - debian |
xml::sax::byrecord(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
how can I use the stream output in other program |
Problems with French Characters |
Replacing part of XML code inside comment tags |