XML::Filter::SAX2toSAX1 - Convert SAX2 events to SAX1
use XML::Filter::SAX2toSAX1; # create a SAX1 handler my $handler = XML::Handler::YAWriter->new(); # filter from SAX2 to SAX1 my $filter = XML::Filter::SAX2toSAX1->new(Handler => $handler); # SAX2 parser my $parser = XML::SAX::ParserFactory->parser(Handler => $filter); # parse file $parser->parse_uri( "file.xml" );
This module is a very simple module for creating SAX1 events from SAX2 events. It is useful in the case where you have a SAX2 parser but want to use a SAX1 handler or filter of some sort.
Matt Sergeant, email@example.com
XML::Parser::PerlSAX, XML::SAX::Base, XML::Filter::SAX1toSAX2