Exporting XML
-
XML::Generator::DBI
-
XML::Handler::YAWriter
-
use DBI; use XML::Generator::DBI; use XML::Handler::YAWriter;
-
my $dbh= DBI->connect(...);
-
my $ya = XML::Handler::YAWriter->new(AsFile => "-"); my $generator = XML::Generator::DBI->new( Handler => $ya, dbh => $dbh ); $generator->execute('SELECT * FROM data');