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