Linux SoftwareProgrammingLibrariesPXR::Parser 0.1.5

PXR::Parser 0.1.5


PXR::Parser is a Pure Perl SAX XML Push Parser. SYNOPSIS use PXR::Parser; my $parser = PXR::Parser->new(
Developer:   Nicholas Perez
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   16K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


PXR::Parser is a Pure Perl SAX XML Push Parser.

SYNOPSIS

use PXR::Parser;

my $parser = PXR::Parser->new(
'Handlers' => {
'startDocument' => &start_doc,
'endDocument' => &end_doc,
'startElement' => &start_element,
'endElement' => &end_element,
'characters' => &characters,
}
);

$parser->parse($data);

$parser->setHandlers('startDocument' => &different_start);

A simple, fast, efficient pure perl sax xml parser.

BUGS AND NOTES

This Parser was blatantly ripped and modified from XML::Stream::Parser because it was the only pure perl parser simple and speedy enough to be included by default in various other things such as PXR or PoCo::Jabber. Just note that there is no recovering or detecting XML malformedness. So if you feed this little pet something non-tasty, you are in for a surprise (mainly memory leaking everywhere, and other things like gnawing on furniture).

That is the trade off for its speed. In situtations where you know you are not going to get malformed XML such as a connection to a jabber server (or other XML pushing entities) then this parser is ideal. Currently, the speed difference between this parser and XML::Parser::Expat are about 30 percent in favor of XML::Parser::Expat (which says alot of the speed of this pure perl implementation).

Thanks to Ryan Eatmon for writing and releasing this code. It has been a boon to those of us that really appreciate a simple small solution.

Requirements:
  • Perl
    tags pure perl  this parser  pxr parser  xml parser  the speed  parser expat  you are  other things  perl sax  sax xml  

    Download PXR::Parser 0.1.5


     http://mirrors.evolva.ro/CPAN/authors/id/N/NP/NPEREZ/PXR-0.1.5.tar.gz


    Authors software

    PXR::Parser 0.1.5 (by Nicholas Perez)
    PXR::Parser is a Pure Perl SAX XML Push Parser.

    SYNOPSIS

    use PXR::Parser;

    my $parser = PXR::Parser->new(


    Similar software

    PXR::Parser 0.1.5 (by Nicholas Perez)
    PXR::Parser is a Pure Perl SAX XML Push Parser.

    SYNOPSIS

    use PXR::Parser;

    my $parser = PXR::Parser->new(

    SVG::Parser 1.01 (by Peter Wainwright)
    SVG::Parser is a Perl module with XML Parser for SVG documents.

    SYNOPSIS

    #!/usr/bin/perl -w
    use strict;
    use SVG::Parser;

    d

    XML::Parser 2.34 (by Larry Wall)
    XML::Parser is a perl module for parsing XML documents.

    SYNOPSIS

    use XML::Parser;

    $p1 = new XML::Parser(Style => 'Debu

    XML::Checker::Parser 1.02 (by Enno Derksen)
    XML::Checker::Parser is an XML::Parser that validates at parse time.

    SYNOPSIS

    use XML::Checker::Parser;

    my %expat_options

    RDF::Simple::Parser 0.3 (by Jo Walsh)

    MP3::M3U::Parser 2.20 (by Burak G?rsoy)
    MP3::M3U::Parser is a MP3 playlist parser.

    SYNOPSIS

    use MP3::M3U::Parser;
    my $parser = MP3::M3U::Parser->new(%options);

    XML::Parser::Style::Stream 2.34 (by Clark Cooper)
    XML::Parser::Style::Stream is a Stream style for XML::Parser.

    SYNOPSIS

    use XML::Parser;
    my $p = XML::Parser->new(Style =>

    Pod::XML 0.96 (by Matt Sergeant)
    Pod::XML is a Perl module to convert POD to XML.

    SYNOPSIS

    use Pod::XML;
    my $parser = Pod::XML->new();
    $parser->parse_fr

    RDFStore::Parser::SiRPAC 0.50 (by Alberto Reggiori)
    RDFStore::Parser::SiRPAC is a Perl module that implements a streaming RDF Parser as a direct implementation of XML::Parser::Expat.

    Makefile::Parser 0.11 (by Agent Zhang)
    Makefile::Parser is a Simple Parser for Makefiles.

    SYNOPSIS

    use Makefile::Parser;

    $parser = Makefile::Parser->new;


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags