XML::Filter::Merger is a Perl module to assemble multiple SAX streams in to one document.
SYNOPSIS
## See XML::SAX::Manifold and XML::SAX::ByRecord for easy ways
## to use this processor.
my $w = XML::SAX::Writer->new( Output => *STDOUT );
my $h = XML::Filter::Merger->new( Handler => $w );
my $p = XML::SAX::ParserFactory->parser( Handler => $h );
## To insert second and later docs in to the first doc:
$h->start_manifold_document( {} );
$p->parse_file( $_ ) for @ARGV;
$h->end_manifold_document( {} );
## To insert multiple docs inline (especially useful if
## a subclass does the inline parse):
$h->start_document( {} );
$h->start_element( { ... } );
....
$h->start_element( { Name => "foo", ... } );
$p->parse_uri( $uri ); ## Body of $uri inserted in ...
$h->end_element( { Name => "foo", ... } );
...
Combines several documents in to one "manifold" document. This can be done in two ways, both of which start by parsing a master document in to which (the guts of) secondary documents will be inserted.
Product's homepage
Requirements:
· Perl