| 1 |
=head1 NAME |
| 2 |
|
| 3 |
XML::LibXML::SAX - XML::LibXML direct SAX parser |
| 4 |
|
| 5 |
=head1 DESCRIPTION |
| 6 |
|
| 7 |
XML::LibXML provides an interface to libxml2 direct SAX interface. Through this |
| 8 |
interface it is possible to generate SAX events directly while parsing a |
| 9 |
document. While using the SAX parser XML::LibXML will not create a DOM Document |
| 10 |
tree. |
| 11 |
|
| 12 |
Such an interface is useful if very large XML documents have to be processed |
| 13 |
and no DOM functions are required. By using this interface it is possible to |
| 14 |
read data stored within an XML document directly into the application data |
| 15 |
structures without loading the document into memory. |
| 16 |
|
| 17 |
The SAX interface of XML::LibXML is based on the famous XML::SAX interface. It |
| 18 |
uses the generic interface as provided by XML::SAX::Base. |
| 19 |
|
| 20 |
Additionally to the generic functions, which are only able to process entire |
| 21 |
documents, XML::LibXML::SAX provides I<<<<<< parse_chunk() >>>>>>. This method generates SAX events from well balanced data such as is often |
| 22 |
provided by databases. |
| 23 |
|
| 24 |
|
| 25 |
=head1 FEATURES |
| 26 |
|
| 27 |
I<<<<<< NOTE: >>>>>> This feature is experimental. |
| 28 |
|
| 29 |
You can enable character data joining which may yield a significant speed boost |
| 30 |
in your XML processing in lower markup ratio situations by enabling the |
| 31 |
http://xmlns.perl.org/sax/join-character-data feature of this parser. This is |
| 32 |
done via the set_feature method like this: |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
$p->set_feature('http://xmlns.perl.org/sax/join-character-data', 1); |
| 37 |
|
| 38 |
You can also specify a 0 to disable. The default is to have this feature |
| 39 |
disabled. |
| 40 |
|
| 41 |
=head1 AUTHORS |
| 42 |
|
| 43 |
Matt Sergeant, |
| 44 |
Christian Glahn, |
| 45 |
Petr Pajas |
| 46 |
|
| 47 |
|
| 48 |
=head1 VERSION |
| 49 |
|
| 50 |
2.0134 |
| 51 |
|
| 52 |
=head1 COPYRIGHT |
| 53 |
|
| 54 |
2001-2007, AxKit.com Ltd. |
| 55 |
|
| 56 |
2002-2006, Christian Glahn. |
| 57 |
|
| 58 |
2006-2009, Petr Pajas. |
| 59 |
|
| 60 |
=cut |
| 61 |
|
| 62 |
|
| 63 |
=head1 LICENSE |
| 64 |
|
| 65 |
This program is free software; you can redistribute it and/or modify it under |
| 66 |
the same terms as Perl itself. |
| 67 |
|