• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

ChangesH A D13-Dec-2000628 2317

MANIFESTH A D30-Nov-200087 109

Makefile.PLH A D30-Nov-2000389 138

READMEH A D01-Dec-20001 KiB3227

XMLDB.sctH A D30-Nov-2000826 5139

XML_RDB.pmH A D13-Dec-20005.6 KiB21791

sql2xml.plH A D03-May-20221.6 KiB8056

test.plH A D30-Nov-2000658 215

xml2sql.plH A D03-May-20225.3 KiB241160

README

1DBIx::XML_RDB creates XML from select statements to DBI datasources.
2It also includes an import utility xml2sql that allows you to copy
3data from one database to another.
4
5SYNOPSIS
6      use DBIx::XML_RDB;
7      my $xmlout = DBIx::XML_RDB->new($datasource,
8                    "ODBC", $userid, $password, $dbname) || die "Failed to make new xmlout";
9      $xmlout->DoSql("select * from MyTable");
10      print $xmlout->GetData;
11
12The format of the XML output is something like this:
13
14    <?xml version="1.0"?>
15    <DBI driver="dbi:Sybase:database=foo">
16            <RESULTSET statement="select * from Table">
17                    <ROW>
18                    <Col1Name>Data</Col1Name>
19                    <Col2Name>Data</Col2Name>
20                    ...
21                    </ROW>
22                    <ROW>
23                    ...
24                    </ROW>
25            </RESULTSET>
26            <RESULTSET statement="select * from OtherTable">
27            ...
28            </RESULTSET>
29    </DBI>
30
31Matt Sergeant, matt@sergeant.org
32