Xml Sax Parser
SAX is commonly used on large XML files because they don't fit nicely into core memory necessary for the friendlier DOM API. When dealing with -really- large XML files, multiple passes over the file becomes costly. The SAX handler in this script allows you to handle an XML file multiple ways in...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (49): Multiple handlers for xml.sax parser Download |
XML::SAX is a simple API for XML. SYNOPSIS use XML::SAX; # get a list of known parsers my $parsers = XML::SAX->parsers(); # add/update a parser XML::SAX->add_parser(q(XML::SAX::PurePerl)); # remove parser XML::SAX->remove_parser(q(XML::SAX::Foodelberry)); # save parsers...
Platforms: *nix
License: Freeware | Size: 58.37 KB | Download (95): XML::SAX Download |
XML::SAX::Machine is a Perl module that can manage a collection of SAX processors. SYNOPSIS ## Note: See XML::SAX::Pipeline and XML::SAX::Machines first, ## this is the gory, detailed interface. use My::SAX::Machines qw( Machine ); use My::SAX::Filter2; use My::SAX::Filter3; my...
Platforms: *nix
License: Freeware | Size: 43.01 KB | Download (103): XML::SAX::Machine Download |
XML::SAX::Intro is an Introduction to SAX Parsing with Perl. XML::SAX is a new way to work with XML Parsers in Perl. In this article well discuss why you should be using SAX, why you should be using XML::SAX, and well see some of the finer implementation details. The text below assumes some...
Platforms: *nix
License: Freeware | Size: 58.37 KB | Download (101): XML::SAX::Intro Download |
XML::RSS::Parser is a liberal object-oriented parser for RSS feeds. SYNOPSIS #!/usr/bin/perl -w use strict; use XML::RSS::Parser; use FileHandle; my $p = XML::RSS::Parser->new; my $fh = FileHandle->new(/path/to/some/rss/file); my $feed = $p->parse_file($fh); # output some values my...
Platforms: *nix
License: Freeware | Size: 12.29 KB | Download (93): XML::RSS::Parser Download |
XML::Checker::Parser is an XML::Parser that validates at parse time. SYNOPSIS use XML::Checker::Parser; my %expat_options = (KeepCDATA => 1, Handlers => [ Unparsed => &my_Unparsed_handler ]); my $parser = new XML::Checker::Parser (%expat_options); eval { local $XML::Checker::FAIL =...
Platforms: *nix
License: Freeware | Size: 368.64 KB | Download (110): XML::Checker::Parser Download |
XML::SAX::Base is a base Perl class with SAX Drivers and Filters. SYNOPSIS package MyFilter; use XML::SAX::Base; @ISA = (XML::SAX::Base); This module has a very simple task - to be a base class for PerlSAX drivers and filters. Its default behaviour is to pass the input directly to the...
Platforms: *nix
License: Freeware | Size: 20.48 KB | Download (100): XML::SAX::Base Download |
XML::SAX::Simple is a SAX version of XML::Simple. SYNOPSIS use XML::SAX::Simple qw(XMLin XMLout); my $hash = XMLin("foo.xml"); XML::SAX::Simple is a very simple version of XML::Simple but for SAX. It can be used as a complete drop-in replacement for XML::Simple. See the documentation for...
Platforms: *nix
License: Freeware | Size: 16.38 KB | Download (94): XML::SAX::Simple Download |
XML::LibXML::Parser is a Perl module to parse XML Data with XML::LibXML. SYNOPSIS $parser = XML::LibXML->new(); $doc = $parser->parse_file( $xmlfilename ); $doc = $parser->parse_fh( $io_fh ); $doc = $parser->parse_string( $xmlstring); $doc = $parser->parse_html_file( $htmlfile, %opts );...
Platforms: *nix
License: Freeware | Size: 256 KB | Download (106): XML::LibXML::Parser Download |
XML::SAX::Writer is a Perl module with SAX2 Writer. SYNOPSIS use XML::SAX::Writer; use XML::SAX::SomeDriver; my $w = XML::SAX::Writer->new; my $d = XML::SAX::SomeDriver->new(Handler => $w); $d->parse(some options...); Why yet another XML Writer ? A new XML Writer was needed to match...
Platforms: *nix
License: Freeware | Size: 12.29 KB | Download (105): XML::SAX::Writer Download |
XML::SAX::ByRecord can record oriented processing of (data) documents. SYNOPSIS use XML::SAX::Machines qw( ByRecord ) ; my $m = ByRecord( "My::RecordFilter1", "My::RecordFilter2", ... { Handler => $h, ## optional } ); $m->parse_uri( "foo.xml" ); XML::SAX::ByRecord is a SAX...
Platforms: *nix
License: Freeware | Size: 43.01 KB | Download (89): XML::SAX::ByRecord Download |
SAXY is a Simple API for XML (SAX) parser for PHP, written purely in PHP. It is lightweight, fast, and modelled on the Expat parser.
Platforms: Windows, Mac, Linux
License: Freeware | Size: 39.01 KB | Download (54): SAXY - A SAX XML parser for PHP Download |
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, } );...
Platforms: *nix
License: Freeware | Size: 16.38 KB | Download (111): PXR::Parser Download |
Matra is a java based XML DTD Parser Utility. It allows you to parse a dtd, generate a dtdtree for the dtd and merge the dtd and its included modules into a single dtd. http://matra.sourceforge.net
Platforms: Windows, Mac, Linux
License: Freeware | Size: 261.08 KB | Download (49): Matra - an XML DTD Parser Download |
XML::Handler::HTMLWriter is a SAX Handler for writing HTML 4.0. SYNOPSIS use XML::Handler::HTMLWriter; use XML::SAX; my $writer = XML::Handler::HTMLWriter->new(...); my $parser = XML::SAX::ParserFactory->parser(Handler => $writer); ... This module is based on the rules for outputting...
Platforms: *nix
License: Freeware | Size: 7.17 KB | Download (140): XML::Handler::HTMLWriter Download |
Pod::SAX is a SAX parser for Pod. SYNOPSIS my $h = XML::SAX::Writer->new(); my $p = Pod::SAX->new( Handler => $h ); $p->parse_uri(perlpodspec.pod); Very simply, this module parses POD (or perl) files and turns the Plain Old Documentation into SAX events (which often youll use to turn into...
Platforms: *nix
License: Freeware | Size: 14.34 KB | Download (88): Pod::SAX Download |
XML::DOM::Lite is a Lite Pure Perl XML DOM Parser Kit. SYNOPSIS # Parser use XML::DOM::Lite qw(Parser :constants); $parser = Parser->new( %options ); $doc = Parser->parse($xmlstr); $doc = Parser->parseFile(/path/to/file.xml); # strip whitespace (can be about 30% faster) $doc =...
Platforms: *nix
License: Freeware | Size: 30.72 KB | Download (97): XML::DOM::Lite Download |
XML::Parser::PerlSAX is a Perl SAX parser using XML::Parser. SYNOPSIS use XML::Parser::PerlSAX; $parser = XML::Parser::PerlSAX->new( [OPTIONS] ); $result = $parser->parse( [OPTIONS] ); $result = $parser->parse($string); XML::Parser::PerlSAX is a PerlSAX parser using the XML::Parser...
Platforms: *nix
License: Freeware | Size: 64.51 KB | Download (107): XML::Parser::PerlSAX Download |
SVG::Parser is a Perl module with XML Parser for SVG documents. SYNOPSIS #!/usr/bin/perl -w use strict; use SVG::Parser; die "Usage: $0 n" unless @ARGV; my $xml; { local $/=undef; $xml=<>; } my $parser=new SVG::Parser(-debug => 1); my $svg=$parser->parse($xml); print...
Platforms: *nix
License: Freeware | Size: 14.34 KB | Download (146): SVG::Parser Download |
XML::Filter::Tee can send SAX events to multiple processor, with switching. SYNOPSIS my $t = XML::Filter::Tee->new( { Handler => $h0 }, { Handler => $h1 }, { Handler => $h2 }, ... ); ## Altering the handlers list: $t->set_handlers( $h0, $h1, $h2, $h3 ); ## Controlling flow to a...
Platforms: *nix
License: Freeware | Size: 43.01 KB | Download (106): XML::Filter::Tee Download |