Top Level :: XML

Package Information: XML_Query2XML

Show All Changelogs
» Version » Information
1.7.0Download

Release date: 2008-05-02 18:10 UTC
Release state: stable

Changelog:

This feature release brings the following additions:
- new driver for PEAR Net_LDAP2: XML_Query2XML_Driver_LDAP2
- options 'limit' and 'offset' now supported by the MDB2 and DB drivers;
thanks to Johnny Cheng from openflyers.org for this feature request
- improved logging: now also logs the variables with which a prepared
statement is executed
- consolidation of unit tests for different database drivers; use
the environment variable PHP_PEAR_XML_QUERY2XML_TEST_DBLAYER to
set the database driver to be used (MDB2,DB,PDO,ADOdbDefault,
ADOdbPEAR or ADOdbException). Also use the environment variable
PHP_PEAR_XML_QUERY2XML_TEST_LDAPLAYER to set the LDAP driver
to be used (LDAP or LDAP2). Then simply run
'pear run-tests -p XML_Query2XML'
Note: no changes were introduced since 1.7.0RC1.

Dependencies:
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: Net_LDAP2 (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: I18N_UnicodeString (optional)
1.7.0RC1Download

Release date: 2008-04-21 13:29 UTC
Release state: beta

Changelog:

This feature release brings the following additions:
- new driver for PEAR Net_LDAP2: XML_Query2XML_Driver_LDAP2
- options 'limit' and 'offset' now supported by the MDB2 and DB drivers;
thanks to Johnny Cheng from openflyers.org for this feature request
- improved logging: now also logs the variables with which a prepared
statement is executed
- consolidation of unit tests for different database drivers; use
the environment variable PHP_PEAR_XML_QUERY2XML_TEST_DBLAYER to
set the database driver to be used (MDB2,DB,PDO,ADOdbDefault,
ADOdbPEAR or ADOdbException). Also use the environment variable
PHP_PEAR_XML_QUERY2XML_TEST_LDAPLAYER to set the LDAP driver
to be used (LDAP or LDAP2). Then simply run
'pear run-tests -p XML_Query2XML'

Dependencies:
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: Net_LDAP2 (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: I18N_UnicodeString (optional)
1.6.0Download

Release date: 2008-01-06 12:54 UTC
Release state: stable

Changelog:

This stable release implements the following new features:
- LDAP support: the new LDAP driver uses PEAR Net_LDAP
see http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#ldap
- new open driver architecture allows you to implement your own drivers
see http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#yourdriver
- $options['sql']['driver'] now allows you to use different drivers for each query
- fixed documentation bug #12568
- PEAR Coding Standard fixes
- correction of copyright notice
- XML_Query2XML now comes with 1159 phpt unit tests
Note: No changes were introduced since 1.6.0RC1.

Dependencies:
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: Net_LDAP (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: I18N_UnicodeString (optional)
1.6.0RC1Download

Release date: 2008-01-02 16:41 UTC
Release state: beta

Changelog:

This release candidate contains the following new features:
- LDAP support: the new LDAP driver uses PEAR Net_LDAP
see http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#ldap
- new open driver architecture allows you to implement your own drivers
see http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#yourdriver
- $options['sql']['driver'] now allows you to use different drivers for each query
- fixed documentation bug #12568
- PEAR Coding Standard fixes
- correction of copyright notice
- XML_Query2XML now comes with 1159 phpt unit tests

Dependencies:
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: Net_LDAP (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: I18N_UnicodeString (optional)
1.5.0Download

Release date: 2007-10-07 19:32 UTC
Release state: stable

Changelog:

This seventh stable release comes after extensive re-factoring:
- XML_Query2XML now does a lot of internal pre-processing
- this improves performance by at least 30%
- all exceptions now contain information that relates to the
configuration option that caused the exception to be thrown
- caching is now deactivated by default as is not needed in
most cases; see $options['sql_options']['cached']
- XML_Query2XML now comes with 1144 phpt unit tests
Note: No changes were introduced since 1.5.0RC1.

Dependencies:
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: DB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: I18N_UnicodeString (optional)
1.5.0RC1Download

Release date: 2007-09-30 19:17 UTC
Release state: beta

Changelog:

This release candidate comes after extensive re-factoring:
- XML_Query2XML now does a lot of internal pre-processing
- this improves performance by at least 30%
- all exceptions now contain information that relates to the
configuration option that caused the exception to be thrown
- caching is now deactivated by default as is not needed in
most cases; see $options['sql_options']['cached']
- XML_Query2XML now comes with 1144 phpt unit tests
Note: if 1.5.0RC1 does not cause any problems for early adopters
(which I consider very unlikely) 1.5.0 will be released next weekend.

Dependencies:
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: DB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: I18N_UnicodeString (optional)
1.4.0Download

Release date: 2007-09-03 18:56 UTC
Release state: stable

Changelog:

This sixth stable release contains a couple of new features:
- PDO support - this also adds support for SQLite 3 (thanks to
John P. McCaskey for pointing out the lack of SQLite 3 support)
- all unit tests now run with SQLite 2 by default; unit tests
for PDO and PEAR MDB2 will therefore work out of the box
- XML_Query2XML now comes with 1084 phpt unit tests

Dependencies:
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: DB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: I18N_UnicodeString (optional)
1.3.0Download

Release date: 2007-08-26 22:39 UTC
Release state: stable

Changelog:

This fith stable release contains a couple of new features:
- enhanced support for CDATA sections
(see the CDATA SECTION prefix)
- enhanced support for binary data via base64 encoding
(see the BASE64 ENCODING prefix; thanks to Thomas Haslbeck
for making me implement this feature)
- support for dynamic XML element names determined at run time
(see the dynamicRowTag option; thanks to John P. McCaskey for
requesting this feature)
- XML_Query2XML now comes with 913 phpt unit tests

Dependencies:
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: DB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: I18N_UnicodeString (optional)
1.2.1Download

Release date: 2007-05-26 12:03 UTC
Release state: stable

Changelog:

This fourth stable release contains only some small enhancements:
- dumping the data of all the tables in your database is now easier;
there is also a new section in the tutorial that describes how to do this:
http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#dumpdatabase
Thanks to vikram dot melonfire at gmail dot com for raising the issue of database dumps
- $sql and $options['idColumn'] now also accept a value of false
- XML_Query2XML now comes with 803 phpt unit tests

Dependencies:
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: DB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: I18N_UnicodeString (optional)
1.2.0Download

Release date: 2007-04-15 13:06 UTC
Release state: stable

Changelog:

This third stable release contains a new feature and some minor coding-style related changes
- it is now possible to handle data sources that use another character encoding
than ISO-8859-1; see the 'encoder' option:
http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#query2xml_getxml.options_encoder
Thanks to Mickael Guerin for making me implement this feature that has been sitting on my
todo list for quite some time now.
- other character encodings than UTF-8 can now also be used for XML encoding; see
http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#encoding
- unit tests are now correctly skipped if the database connection fails
- XML_Query2XML now comes with 783 phpt unit tests

Dependencies:
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: DB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: I18N_UnicodeString (optional)
1.1.0Download

Release date: 2007-02-03 17:58 UTC
Release state: stable

Changelog:

This second stable release contains a couple of great new features:
- it's now possible to integrate other XML data sources (e.g. XML stored in the DB)
- XML unserialization support: see the ampersand prefix
- you can now return DOMNode instances from callback functions
- non-static methods can now be used as callbacks by
implementing the new XML_Query2XML_Callback interface

The smaller changes include:
- cleaned up API docs
- hidden_container_prefix can now be set using setGlobalOption()
- numerous CS fixes in the tutorial
- now using MDB2 instead of DB in all examples
- documented multi-column primary key support
- now comes with 678 unit tests (tested with MySQL and PostgreSQL)

Dependencies:
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: DB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: I18N_UnicodeString (optional)
1.0.0Download

Release date: 2006-12-04 21:19 UTC
Release state: stable

Changelog:

I am very proud to announce the first stable release of XML_Query2XML.
This release introduces only one minor change. It's not
a bug fix but just a matter of clean code. The patch
was anonymously submitted via the project's sourceforge site
(Note: pear.php.net should be used instead).

If you are upgrading from v0.6.x or v0.7.x, please read
http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#migration

Dependencies:
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: DB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: Log (optional)
  • PEAR Package: XML_Beautifier (optional)
  • PEAR Package: I18N_UnicodeString (optional)
0.8.0Download

Release date: 2006-11-04 00:19 UTC
Release state: beta

Changelog:

This release is *NOT BACKWARD COMPATIBLE*.
I'm sorry for the BC break, but due to security considerations XML_Query2XML
does not use the native function eval() anymore. Therefore
- the "!" prefix is not supported anymore
- the behaviour of the "condition" option was changed
- the new callback prefix "#" was added (use it instead of the "!" prefix)

A migration strategy is documented at
http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#migration

Also:
- unit tests were migrated from PHPUnit2 to phpt
- XML_Query2XML now comes with 433 unit tests
- migrated from package.xml version 1.0 to version 2.0

Dependencies:
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PHP Version: PHP 5.0.0 or newer
  • PEAR Package: Log (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: I18N_UnicodeString (optional)
  • PEAR Package: XML_Beautifier (optional)
0.7.0Download

Release date: 2006-10-14 19:46 UTC
Release state: beta

Changelog:

This release adds support for ADOdb (adodb.sf.net).
ADOdb can be used with different error handling mechanisms:
- default: methods return false on failure; these errors
will be caught by XML_Query2XML and an XML_Query2XML_DBException
will be thrown
- PEAR_Error: methods return PEAR_Error on failure (or false
and require ADODB_Pear_Error() to be called);
XML_Query2XML will catch these errors and throw an
XML_Query2XML_DBException that contains the information provided
by the PEAR_Error instance.
- exceptions: if an ADODB_Exception is thrown by ADOdb
XML_Query2XML will catch it and throw an XML_Query2XML_DBException

This means that no matter which error handling mechanism is used within
ADOdb, XML_Query2XML will behave the same. It will throw an
XML_Query2XML_DBException in case of a database error.

Dependencies:
0.6.1Download

Release date: 2006-09-28 10:29 UTC
Release state: beta

Changelog:

This release fixes a minor bug with PHP5 prior to 5.1.0.
Thanks a lot to Christophe Laratte <christophe dot laratte at openflyers dot org>
for reporting this!

Bug fixes:
- Fixed Bug #8799 "DB/common.php required": compatibility fix for
PHP5 < 5.1.0: added class_exists() calls before using instanceof
operator in XML_Query2XML constructor;
see also: http://bugs.php.net/bug.php?id=29736

Dependencies:
0.6.0Download

Release date: 2006-04-23 15:07 UTC
Release state: beta

Changelog:

This release includes all changes recommeded during the PEPr voting process.
Major changes:
- asterisk shortcut that expands to all columns in the result set;
the tutorial was updated to document this feature and a new
case study (case 07) was added to provide a good example
- implementation of ISO/IEC 9075-14:2005 for mapping SQL identifiers to
XML names; the tutorial was updates to document this feature and
a new case study (case 08) was added to provide lots of examples
- new complex attribute specifications (from my own wish list)

Minor changes:
- simplification of the inner workings of the methods _hasDOMChild()
and _getDOMChild()
- using foreach($array as $key => $value) instead of
while(list($key, $value) = each($array))
- now comes with 168 unit tests

Dependencies: