XML::LibXML::SAX::Builder3pm
Building dom trees from sax events.
Usage
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();
Overview
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.
Version
2.0213
Releases
13 releases since Debian 3.0 (Woody); the text changed 12 times.