Set WeberTrivia.com to be my default homepage.   Suggest a Question                                               

Suggest A Question : :  Frequently Asked Questions : :  Search : :  Relevant Manuals : : 
PHP Questions : :  Linux Questions : :  MySQL Questions : : 
home  [ Login ] 

Introduction

Introduction -- Simple transformations

Example database

In this tutorial, the examples refers to this database tables:

mysql> select * from bands; +----+--------------+------------+-------------+-------------+ | id | name         | birth_year | birth_place | genre       | +----+--------------+------------+-------------+-------------+ |  1 | The Blabbers |       1998 | London      | Rock'n'Roll | |  2 | Only Stupids |       1997 | New York    | Hip Hop     | +----+--------------+------------+-------------+-------------+  mysql> select * from albums; +----+---------+------------------+------+-----------------+ | id | bandsID | title            | year | comment         | +----+---------+------------------+------+-----------------+ |  1 |       1 | BlaBla           | 1998 | Their first one | |  2 |       1 | More Talks       | 2000 | The second one  | |  3 |       2 | All your base... | 1999 | The 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.

Who's Online
Guest Users: 9
Google
Web
WeberTrivia
WeberDev
WeberForums
 Free Sample Chapters  Free Sample Chapters
  Deliver First Class Web Sites: 101 Essential Checklists
Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?

More Sample Chapters

PHP General