> >  -----Original Message-----
> > From: Thirumalai, Radhika
> > Sent: Thursday, April 19, 2001 4:25 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: DBIx::XML_RDB
> >
> > I'm trying to export data from a database to an XML file using
> > DBIx::XML_RDB module.
> > When I execute the code below, i get the error message "connection
failed
> > - Failed to make new xmlout". Any help will be appreciated. Thanks
> >
> > Radhika.

DBIx::XML_RDB does not return any DBI error messages but does print to
STDERR;
Here is a quote from the initialize function from XML_RDB.pm that is called
by the new constructor.
He should print the DBI->errstr here;

 $self->{dbh} = DBI->connect("dbi:$driver:". $self->{datasource}, $userid,
$password);
 if (!$self->{dbh}) {
  print STDERR "Connection failed\n";
  return 0;
 }


Reply via email to