XML::LibXML::SAX::Builder - Building DOM trees from SAX events.
use XML::LibXML::SAX::Builder;
my $builder = XML::LibXML::SAX::Builder->new();
my $gen = XML::Generator::DBI->new(Handler => $builder, dbh => $dbh);
$gen->execute("SELECT * FROM Users");
my $doc = $builder->result();
User Contributed Perl Documentation
XML::LibXML::SAX::Builder(3)
NAME
XML::LibXML::SAX::Builder - Building DOM trees from SAX events.
SYNOPSIS
use XML::LibXML::SAX::Builder;
my $builder = XML::LibXML::SAX::Builder->new();
my $gen = XML::Generator::DBI->new(Handler => $builder, dbh => $dbh);
$gen->execute("SELECT * FROM Users");
my $doc = $builder->result();
DESCRIPTION
This is a SAX handler that generates a DOM tree from SAX events. Usage
is as above. Input is accepted from any SAX1 or SAX2 event generator.
Building DOM trees from SAX events is quite easy with
XML::LibXML::SAX::Builder. The class is designed as a SAX2 final
handler not as a filter!
Since SAX is strictly stream oriented, you should not expect anything
to return from a generator. Instead you have to ask the builder
instance directly to get the document built.
XML::LibXML::SAX::Builder's result() function holds the document
generated from the last SAX stream.
AUTHORS
Matt Sergeant, Christian Glahn, Petr Pajas
VERSION
2.0201
COPYRIGHT
2001-2007, AxKit.com Ltd.
2002-2006, Christian Glahn.
2006-2009, Petr Pajas.
LICENSE
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+-------------------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+-------------------------------+
|Availability | library/perl-5/xml-libxml-532 |
+---------------+-------------------------------+
|Stability | Volatile |
+---------------+-------------------------------+
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from
http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-
LibXML-2.0201.tar.gz.
Further information about this software can be found on the open source
community website at http://search.cpan.org/~shlomif/XML-LibXML/.
perl v5.32.0 2019-05-25
XML::LibXML::SAX::Builder(3)