Main > Programming > Libraries >

XML::LibXML::Reader 1.63

XML::LibXML::Reader 1.63

Sponsored Links

XML::LibXML::Reader 1.63 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.25 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 866
Date added: 2007-06-15
Publisher: Petr Pajas

XML::LibXML::Reader 1.63 description

XML::LibXML::Reader is a Perl interface to libxml2 pull parser.

SYNOPSIS

use XML::LibXML::Reader;

$reader = new XML::LibXML::Reader("file.xml")
or die "cannot read file.xmln";
while ($reader->read) {
processNode($reader);
}


sub processNode {
$reader = shift;
printf "%d %d %s %dn", ($reader->depth,
$reader->nodeType,
$reader->name,
$reader->isEmptyElement);
}
or
$reader = new XML::LibXML::Reader("file.xml")
or die "cannot read file.xmln";
$reader->preservePattern(//table/tr);
$reader->finish;
print $reader->document->toString(1);

This is a perl interface to libxml2s pull-parser implementation xmlTextReader http://xmlsoft.org/html/libxml-xmlreader.html. This feature requires at least libxml2-2.6.21. Pull-parser (StAX in Java, XmlReader in C#) use an iterator approach to parse a xml-file. They are easier to program than event-based parser (SAX) and much more lightweight than tree-based parser (DOM), which load the complete tree into memory.

The Reader acts as a cursor going forward on the document stream and stopping at each node in the way. At every point DOM-like methods of the Reader object allow to examine the current node (name, namespace, attributes, etc.)

The users code keeps control of the progress and simply calls the read() function repeatedly to progress to the next node in the document order. Other functions provide means for skipping complete sub-trees, or nodes until a specific element, etc.

At every time, only a very limited portion of the document is kept in the memory, which makes the API more memory-efficient than using DOM. However, it is also possible to mix Reader with DOM. At every point the user may copy the current node (optionally expanded into a complete sub-tree) from the processed document to another DOM tree, or to instruct the Reader to collect sub-document in form of a DOM tree consisting of selected nodes.

Reader API also supports namespaces, xml:base, entity handling, and DTD validation. Schema and RelaxNG validation support will probably be added in some later revision of the Perl interface.

The naming of methods compared to libxml2 and C# XmlTextReader has been changed slightly to match the conventions of XML::LibXML. Some functions have been changed or added with respect to the C interface.

XML::LibXML::Reader 1.63 Screenshot

Advertisements

XML::LibXML::Reader 1.63 Keywords

Bookmark XML::LibXML::Reader 1.63

Hyperlink code:
Link for forum:

XML::LibXML::Reader 1.63 Copyright

WareSeeker periodically updates pricing and software information of XML::LibXML::Reader 1.63 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of XML::LibXML::Reader 1.63 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
XML::LibXML::Parser is a Perl module to parse XML Data with XML::LibXML. Free Download
XML::LibXML::Node is an abstract base class of XML::LibXML nodes. Free Download
XML::LibXML::XPathContext is an XPath evaluation. Free Download
XML::LibXML::DOM is a XML::LibXML DOM Implementation. Free Download
XML::LibXML::Enhanced is a Perl module that adds convenience methods to XML::LibXML and LibXSLT. Free Download
Bigtop::Docs::Tutorial is a simple case study of building a web app with bigtop. Free Download
XML::Compile::Schema::XmlReader Perl module contains bricks to translate XML to HASH. Free Download
XML::SimpleObject is a Perl extension allowing a simple object representation of a parsed XML::Parser tree. Free Download