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


Manual Reference Pages  -  XML::XPATH::PERLSAX (3)

.ds Aq ’

NAME

XML::XPath::PerlSAX - A PerlSAX event generator for my weird node structure

CONTENTS

SYNOPSIS



        use XML::XPath;
        use XML::XPath::PerlSAX;
        use XML::DOM::PerlSAX;

        my $xp = XML::XPath->new(filename => test.xhtml);
        my $paras = $xp->find(/html/body/p);

        my $handler = XML::DOM::PerlSAX->new();
        my $generator = XML::XPath::PerlSAX->new( Handler => $handler );

        foreach my $node ($paras->get_nodelist) {
                my $domtree = $generator->parse($node);
                # do something with $domtree
        }



DESCRIPTION

This module generates PerlSAX events to pass to a PerlSAX handler such as XML::DOM::PerlSAX. It operates specifically on my weird tree format.

Unfortunately SAX doesn’t seem to cope with namespaces, so these are lost completely. I believe SAX2 is doing namespaces.

Other

The XML::DOM::PerlSAX handler I tried was completely broken (didn’t even compile before I patched it a bit), so I don’t know how correct this is or how far it will work.

LICENSE AND COPYRIGHT

This module is copyright 2000 AxKit.com Ltd. This is free software, and as such comes with NO WARRANTY. No dates are used in this module. You may distribute this module under the terms of either the Gnu GPL, or the Artistic License (the same terms as Perl itself).
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 XML::XPATH::PERLSAX (3) 2016-03-08

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