XML::Filter::DocSplitter 0.41
Sponsored Links
XML::Filter::DocSplitter 0.41 Ranking & Summary
File size:
0.042 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
798
Date added:
2007-08-17
Publisher:
Barrie Slaymaker
XML::Filter::DocSplitter 0.41 description
XML::Filter::DocSplitter does multipass processing of documents.
SYNOPSIS
## See XML::SAX::???? for an easier way to use this filter.
use XML::SAX::Machines qw( Machine ) ;
my $m = Machine(
[ Intake => "XML::Filter::DocSplitter" => qw( Filter ) ],
[ Filter => "My::Filter" => qw( Merger ) ],
[ Merger => "XML::Filter::Merger" => qw( Output ) ],
[ Output => *STDOUT ],
);
## Let the distributor coordinate with the merger
## XML::SAX::Manifold does this for you.
$m->Intake->set_aggregator( $m->Merger );
$m->parse_file( "foo" );
XML::Filter::DocSplitter is a SAX filter that allows you to apply a filter to repeated sections of a document. It splits a document up at a predefined elements in to multiple documents and the filter is run on each document. The result can be left as a stream of separate documents or combined back in to a single document using a filter like XML::SAX::Merger.
By default, the input document is split in all children of the root element. By that reckoning, this document has three sub-documents in it:
< doc >
< subdoc > .... < /subdoc >
< subdoc > .... < /subdoc >
< subdoc > .... < /subdoc >
< /doc >
When using without an aggregator, all events up to the first record are lost; with an aggregator, they are passed directly in to the aggregator as the "first" document. All elements between the records (the "n " text nodes, in this case) are also passed directly to the merger (these will arrive between the end_document and start_document calls for each of the records), as are all events from the last record until the end of the input document. This means that the first document, as seen by the merger, is incomplete; its missing its end_element, which is passed later.
The approach of passing events from the input document right on through to the merger differs from the way XML::Filter::Distributor works.
Version restrictions:
- Can only feed a single aggregator at the moment. I can fix this with a bit of effort.
SYNOPSIS
## See XML::SAX::???? for an easier way to use this filter.
use XML::SAX::Machines qw( Machine ) ;
my $m = Machine(
[ Intake => "XML::Filter::DocSplitter" => qw( Filter ) ],
[ Filter => "My::Filter" => qw( Merger ) ],
[ Merger => "XML::Filter::Merger" => qw( Output ) ],
[ Output => *STDOUT ],
);
## Let the distributor coordinate with the merger
## XML::SAX::Manifold does this for you.
$m->Intake->set_aggregator( $m->Merger );
$m->parse_file( "foo" );
XML::Filter::DocSplitter is a SAX filter that allows you to apply a filter to repeated sections of a document. It splits a document up at a predefined elements in to multiple documents and the filter is run on each document. The result can be left as a stream of separate documents or combined back in to a single document using a filter like XML::SAX::Merger.
By default, the input document is split in all children of the root element. By that reckoning, this document has three sub-documents in it:
< doc >
< subdoc > .... < /subdoc >
< subdoc > .... < /subdoc >
< subdoc > .... < /subdoc >
< /doc >
When using without an aggregator, all events up to the first record are lost; with an aggregator, they are passed directly in to the aggregator as the "first" document. All elements between the records (the "n " text nodes, in this case) are also passed directly to the merger (these will arrive between the end_document and start_document calls for each of the records), as are all events from the last record until the end of the input document. This means that the first document, as seen by the merger, is incomplete; its missing its end_element, which is passed later.
The approach of passing events from the input document right on through to the merger differs from the way XML::Filter::Distributor works.
Version restrictions:
- Can only feed a single aggregator at the moment. I can fix this with a bit of effort.
XML::Filter::DocSplitter 0.41 Screenshot
Advertisements
XML::Filter::DocSplitter 0.41 Keywords
XML
DocSplitter
SAX
DocSplitter 0.41
document
merger
filter
aggregator
documents
QW
XML::Filter::DocSplitter
XMLFilterDocSplitter
XML::Filter::DocSplitter 0.41
Libraries
Programming
Bookmark XML::Filter::DocSplitter 0.41
XML::Filter::DocSplitter 0.41 Copyright
WareSeeker periodically updates pricing and software information of XML::Filter::DocSplitter 0.41 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of XML::Filter::DocSplitter 0.41 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
my documents
legal documents
business documents
documents and settings
documents to go
shared documents
court documents
documents settings
document shredding
documentary james brown muhammad ali
document object model
decorative borders for documents
document management software
documentales
document imaging
documentum
fake pregnancy documents
documention
Related Software
XML::Filter::Tee can send SAX events to multiple processor, with switching. Free Download
XML::Filter::Dispatcher is a path based event dispatching with DOM support. Free Download
XML::Filter::DataIndenter is a SAX2 Indenter for data oriented XML. Free Download
XML::Filter::DOMFilter::LibXML is a SAX Filter allowing DOM processing of selected subtrees. Free Download
XML::DocStats is a Perl module to produce a simple analysis of an XML document. Free Download
XML::Filter::Mode Perl module can filter out all chunks not in the current mode. Free Download
XML::DOM::Lite is a Lite Pure Perl XML DOM Parser Kit. Free Download
XML::Filter::Dispatcher::Compiler can compile rulesets in to code. Free Download
Latest Software
Popular Software
Favourite Software