Name : perl-XML-SAX-Expat-Incremental
| |
Version : 0.05
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 6.1
| Date : 2015-01-23 19:33:53
|
Group : Development/Libraries/Perl
| Source RPM : perl-XML-SAX-Expat-Incremental-0.05-6.1.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : XML::SAX::Expat subclass for non-blocking (incremental)
|
Description :
Most XML parsers give a callback interface within an encapsulated loop. That is, you call
$p->parse_whatever($whatever);
And eventually, when \'$whatever\' is depleted by the parser, \'$p->parse\' will return.
Sometimes you don\'t want the parser to control the loop for you. For example, if you need to retrieve your XML in chunks in a funny way, you might need to do something like
my $doc = \'\'; while (defined(my $buffer = get_more_xml())) { $doc .= $buffer; }
$p->parse_string($doc);
which is not very convenient, or efficient. You could use the perltie manpage to tie a filehandle which does this for you, but that only works some of the time (for example, say you have two inputs coming in simultaneously).
XML::Parser::Expat/\"XML::Parser::ExpatNB Methods\" solves this by providing three methods:
* parse_start
* parse_more
* parse_done
This interface lets you move the loop to outside the parser, retaining control.
The callbacks are executed in the same manner, just that now, when there is no left to parse, instead of taking more data from a source on it\'s own, the parser returns control to you.
$p->parse_start; # you can omit this - parse_start will
while(defined(my $buffer = get_more_xml())) { $p->parse_more($buffer); }
$p->parse_done;
This module is a subclass of the XML::SAX::Expat manpage which is to the XML::Parser::ExpatXS manpage as the XML::SAX::Expat manpage is to the XML::Parser manpage itself.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-X/openSUSE_13.2/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
perl(XML::SAX::Expat::Incremental)
perl-XML-SAX-Expat-Incremental
Requires :