XML::Filter::Merger

XML::Filter::Merger is a Perl module to assemble multiple SAX streams in to one document.
Download

XML::Filter::Merger Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Barrie Slaymaker
  • Publisher web site:
  • http://search.cpan.org/~rbs/

XML::Filter::Merger Tags


XML::Filter::Merger Description

XML::Filter::Merger is a Perl module to assemble multiple SAX streams in to one document. 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. Requirements: · Perl


XML::Filter::Merger Related Software