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.
To install XML::LibXML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::LibXML
CPAN shell
perl -MCPAN -e shell install XML::LibXML
For more information on module installation, please visit the detailed CPAN module installation guide.