Author: matts
Date: Mon Aug 7 10:25:47 2006
New Revision: 429405
URL: http://svn.apache.org/viewvc?rev=429405&view=rev
Log:
Missing from previous patch
Added:
xml/axkit/trunk/lib/Apache/AxKit/LibXML.pm
Added: xml/axkit/trunk/lib/Apache/AxKit/LibXML.pm
URL:
http://svn.apache.org/viewvc/xml/axkit/trunk/lib/Apache/AxKit/LibXML.pm?rev=429405&view=auto
==============================================================================
--- xml/axkit/trunk/lib/Apache/AxKit/LibXML.pm (added)
+++ xml/axkit/trunk/lib/Apache/AxKit/LibXML.pm Mon Aug 7 10:25:47 2006
@@ -0,0 +1,42 @@
+# $Id$
+
+package Apache::AxKit::LibXML;
+
+use strict;
+use XML::LibXML 1.58;
+use Apache::AxKit::LibXMLCallbacks;
+
+use vars qw( @ISA $VERSION );
+
[EMAIL PROTECTED] = ('XML::LibXML');
+$VERSION = 1.0;
+
+sub new {
+ my $proto = shift;
+ my $class = ref( $proto ) || $proto;
+ my $self = $class->SUPER::new( @_ );
+
+ $self->input_callbacks( Apache::AxKit::LibXMLCallbacks->input_callbacks()
);
+
+ return $self;
+}
+
+1;
+__END__
+
+=head1 NAME
+
+Apache::AxKit::LibXML - XML::LibXML wrapper
+
+=head1 SYNOPSIS
+
+ use Apache::AxKit::LibXML;
+ my $parser = Apache::AxKit::LibXML->new();
+ my $doc = $parser->parse_string( $xmlstring );
+
+=head1 DESCRIPTION
+
+This module transparently registers the input callbacks from
+Apache::AxKit::LibXMLCallbacks for every parsing action.
+
+=cut