Category: XML
Author/Contact Info Anton Vandersteen anton.vandersteen@chello.nl Eindhoven/The Netherlands/Europe
Description: With this piece of code you can generate XML in conjunction with a ODBC connection to a database.
sub XML
        {
        use DBIx::XML_RDB;
        my $xmlout = DBIx::XML_RDB->new("Northwind",
        "ODBC", "sa", "sa", "") || die "Failed to make new xmlout";
        
        my $file_xml = "a xml file name.xml"; 
        
        $sqlstatement= "select * from a table";

        $xmlout->DoSql($sqlstatement);
        
        print $xmlout->GetData;
        
        
        }

2006-04-17 Retitled by planetscape, as per Monastery guidelines
Original title: 'XML Data Output'