XML_sql2xml (Previous) (Next) Introduction

Last updated: Sun, 16 May 2004

Introduction

Introduction -- Simple transformations

Example database

In this tutorial, the examples refers to this database tables:
mysql> select * from bands;
+----+--------------+------------+-------------+-------------+
| idname        birth_yearbirth_placegenre       |
+----+--------------+------------+-------------+-------------+
|  1The Blabbers      1998London     Rock'n'Roll |
|  2Only Stupids      1997New York   Hip Hop     |
+----+--------------+------------+-------------+-------------+

mysql> select * from albums;
+----+---------+------------------+------+-----------------+
| idbandsIDtitle           yearcomment         |
+----+---------+------------------+------+-----------------+
|  1      1BlaBla          1998Their first one |
|  2      1More Talks      2000The second one  |
|  3      2All your base...1999The Classic     |
+----+---------+------------------+------+-----------------+

Transformations based on Join queries

If your query result base on joined tables, a nested XML data structure can represent how the DBMS joins the tables. To enable or to disable this behavoir use setOptions() with the option key 'nested'. The default value is TRUE - the nesting is enabled.

If you disable the nesting, the XML structure of rows is flat.

XML_sql2xml (Previous) (Next) Introduction

Download Documentation Last updated: Sun, 16 May 2004
Hosting
HIVE: All information for read only. Please respect copyright!
Hosted by hive ÊÃÁ: Êèåâñêàÿ ãîðîäñêàÿ áèáëèîòåêà