GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SAX1toSAX2(3) User Contributed Perl Documentation SAX1toSAX2(3)

XML::Filter::SAX1toSAX2 - Convert SAX1 events to SAX2

  use XML::Filter::SAX1toSAX2;
  # create a SAX2 handler
  my $handler = XML::Handler::AxPoint->new();
  # filter from SAX1 to SAX2
  my $filter = XML::Filter::SAX1toSAX2->new(Handler => $handler);
  # SAX1 parser
  my $parser = XML::Parser::PerlSAX->new(Handler => $filter);
  # parse file
  $parser->parse(Source => { SystemId => "file.xml" });

This module is a very simple module for creating SAX2 events from SAX1 events. It is useful in the case where you have a SAX1 parser but want to use a SAX2 handler or filter of some sort.

As an added bonus, it also does namespace processing for you!

Matt Sergeant, matt@sergeant.org

XML::Parser::PerlSAX, XML::SAX::Base, XML::Filter::SAX2toSAX1
2002-07-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.