XML::LibXML::SAX::Builder - build a LibXML tree from SAX events
my $builder = XML::LibXML::SAX::Builder->new(); my $gen = XML::Generator::DBI->new(Handler => $builder, dbh => $dbh); my $dom = $gen->execute("SELECT * FROM Users");
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.