cvs: pear /XML_XPath XPath.php package.xml /XML_XPath/XPath common.php error.php result.php
| From: | Daniel Allen | Date: | Fri, 07 Jun 2002 00:13:15 +0000 |
| Subject: | cvs: pear /XML_XPath XPath.php package.xml /XML_XPath/XPath common.php error.php result.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4458@lists.php.net to get a copy of this message | ||
dallen Thu Jun 6 20:13:15 2002 EDT
Modified files:
/pear/XML_XPath XPath.php package.xml
/pear/XML_XPath/XPath common.php error.php result.php
Log:
getting ready for release
Index: pear/XML_XPath/XPath.php diff -u pear/XML_XPath/XPath.php:1.11 pear/XML_XPath/XPath.php:1.12 --- pear/XML_XPath/XPath.php:1.11 Thu Jun 6 19:13:23 2002 +++ pear/XML_XPath/XPath.php Thu Jun 6 20:13:14 2002 @@ -17,7 +17,7 @@ // | Authors: Dan Allen <dan@mojavelinux.com> | // +----------------------------------------------------------------------+ -// $Id: XPath.php,v 1.11 2002/06/06 23:13:23 dallen Exp $ +// $Id: XPath.php,v 1.12 2002/06/07 00:13:14 dallen Exp $ // }}} // {{{ description @@ -53,9 +53,9 @@ // {{{ includes require_once 'PEAR.php'; -require_once dirname(__FILE__) . '/XPath/common.php'; -require_once dirname(__FILE__) . '/XPath/result.php'; -require_once dirname(__FILE__) . '/XPath/error.php'; +require_once 'XPath/common.php'; +require_once 'XPath/result.php'; +require_once 'XPath/error.php'; // }}} @@ -65,7 +65,7 @@ * The main "XML_XPath" class is simply a container class with some methods for * creating DOM xml objects and preparing error codes * - * @version Revision: 1.0 + * @version Revision: 1.1 * @author Dan Allen <dan@mojavelinux.com> * @access public * @since PHP 4.2.1 Index: pear/XML_XPath/package.xml diff -u pear/XML_XPath/package.xml:1.5 pear/XML_XPath/package.xml:1.6 --- pear/XML_XPath/package.xml:1.5 Thu Jun 6 06:54:35 2002 +++ pear/XML_XPath/package.xml Thu Jun 6 20:13:14 2002 @@ -1,39 +1,46 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE package SYSTEM "../package.dtd"> -<package version="1.0"> +<package version="1.0" type="source"> <name>XML_XPath</name> - <summary>Xpath/DOM XML manipulation, maneuvering and query interface.</summary> - <description> - Allows for easy manipulation, maneuvering and querying of a domxml tree using - both xpath queries and DOM walk functions. It uses an internal pointer for all - methods on which the action is performed. Results from an xpath query are returned - as an XPath_Result object, which contains all the DOM functions from the main object. - This class tries to hold as close as possible to the DOM Recommendation. + <summary>The PEAR::XML_XPath class provided an XPath/DOM XML manipulation, maneuvering and query interface.</summary> + <description> + The PEAR::XML_XPath class provided an XPath/DOM XML manipulation, maneuvering and + query interface. - The XML_XPath class was inpired by a class maintained by Nigel Swinson called phpxpath. - The phpxpath class does not rely on PHP xmldom functions and is therefore a sibling to - this class: http://sourceforge.net/projects/phpxpath - </description> - <maintainers> - <maintainer> - <user>dallen</user> - <name>Dan Allen</name> - <email>dallen@php.net</email> - <role>lead</role> - </maintainer> - </maintainers> + The class allows for easy manipulation, maneuvering and querying of a domxml tree using + both xpath queries and DOM walk functions. It uses an internal pointer for all + methods on which the action is performed. Results from an dom/xpath query are returned + as an XPath_Result object, which contains an internal array of DOM nodes and which extends + the common DOM class and hence contains all the DOM functions from the main object to run + on each of the elements in the internal array. This class tries to hold as close as possible to the DOM Recommendation. You MUST have the domxml extension to use this class. + + The XML_XPath class was inspired by a class maintained by Nigel Swinson called phpxpath. + The phpxpath class does not rely on PHP xmldom functions and is therefore a sibling to + this class: http://sourceforge.net/projects/phpxpath + </description> + <maintainers> + <maintainer> + <user>dallen</user> + <name>Dan Allen</name> + <email>dallen@php.net</email> + <role>lead</role> + </maintainer> + </maintainers> + <release> + <license>PHP License</license> + <date>2002-05-23</date> + <state>beta</state> + <version>1.1</version> <deps> <dep type="php" rel="ge" version="4.2.1" /> + <dep type="ext" rel="has">domxml</dep> </deps> - <release> - <license>PHP 2.01</license> - <state>beta</state> - <version>1.0</version> - <date>2002-05-23</date> - <notes> - This is the initial independent PEAR release. - </notes> - <filelist> + <notes> + * relative XPath queries + * enhancements to result object + * addition DOM functions (childNodes(), getElementsByTagName()) + </notes> + <filelist> <dir name="/" baseinstalldir="XML"> <file role="php">XPath.php</file> <dir name="XPath"> @@ -41,7 +48,37 @@ <file role="php">result.php</file> <file role="php">error.php</file> </dir> + <dir name="docs" role="doc"> + <file>XML_XPath_example.php</file> + </dir> </dir> </filelist> </release> + <changelog> + <release> + <version>1.0</version> + <date>2002-05-23</date> + <state>beta</state> + <notes> + This is the initial independent PEAR release. + </notes> + </release> + <release> + <version>1.1</version> + <date>2002-06-06</date> + <state>beta</state> + <notes> + This version brings major enhancements to the API + * childNode(), siblingNode() removed and features are relocated + * added childNodes() which returns an XML_XPath_result object of all children + * added getElementByTagName which returns an XML_XPath_result object of all matching tags + * step functions in result object are now next(), end(), rewind() and nextByNode(Name|Type) + * calling next() after rewind() in the result object counts the first object again, so a regular + while loop can be used + * relative XPath queries are now enabled (getNodePath() provides this functionality) + * better error reports generated and will continue to improve with the domxml extension + * setNodeIndex() in result object removed + </notes> + </release> + </changelog> </package> Index: pear/XML_XPath/XPath/common.php diff -u pear/XML_XPath/XPath/common.php:1.14 pear/XML_XPath/XPath/common.php:1.15 --- pear/XML_XPath/XPath/common.php:1.14 Thu Jun 6 06:53:54 2002 +++ pear/XML_XPath/XPath/common.php Thu Jun 6 20:13:15 2002 @@ -17,7 +17,7 @@ // | Authors: Dan Allen <dan@mojavelinux.com> | // +----------------------------------------------------------------------+ -// $Id: common.php,v 1.14 2002/06/06 10:53:54 dallen Exp $ +// $Id: common.php,v 1.15 2002/06/07 00:13:15 dallen Exp $ // }}} // {{{ description @@ -97,7 +97,7 @@ * an xpath query is executed and can be used to cycle through the * result nodeset or data * - * @version Revision: 1.0 + * @version Revision: 1.1 * @author Dan Allen <dan@mojavelinux.com> * @access public * @since PHP 4.2.1 Index: pear/XML_XPath/XPath/error.php diff -u pear/XML_XPath/XPath/error.php:1.3 pear/XML_XPath/XPath/error.php:1.4 --- pear/XML_XPath/XPath/error.php:1.3 Fri May 24 01:05:16 2002 +++ pear/XML_XPath/XPath/error.php Thu Jun 6 20:13:15 2002 @@ -17,7 +17,7 @@ // | Authors: Dan Allen <dan@mojavelinux.com> | // +----------------------------------------------------------------------+ -// $Id: error.php,v 1.3 2002/05/24 05:05:16 dallen Exp $ +// $Id: error.php,v 1.4 2002/06/07 00:13:15 dallen Exp $ // }}} // {{{ description @@ -31,7 +31,7 @@ /** * Error class for the XML_XPath interface, which just prepares some variables and spawns PEAR_Error * - * @version Revision: 1.0 + * @version Revision: 1.1 * @author Dan Allen <dan@mojavelinux.com> * @access public * @since PHP 4.2.1 Index: pear/XML_XPath/XPath/result.php diff -u pear/XML_XPath/XPath/result.php:1.8 pear/XML_XPath/XPath/result.php:1.9 --- pear/XML_XPath/XPath/result.php:1.8 Thu Jun 6 06:51:53 2002 +++ pear/XML_XPath/XPath/result.php Thu Jun 6 20:13:15 2002 @@ -17,7 +17,7 @@ // | Authors: Dan Allen <dan@mojavelinux.com> | // +----------------------------------------------------------------------+ -// $Id: result.php,v 1.8 2002/06/06 10:51:53 dallen Exp $ +// $Id: result.php,v 1.9 2002/06/07 00:13:15 dallen Exp $ // }}} // {{{ description @@ -45,7 +45,7 @@ * Interface for an XML_XPath result so that one can cycle through the result set and manipulate * the main tree with DOM methods using a seperate pointer then the original class. * - * @version Revision: 1.0 + * @version Revision: 1.1 * @author Dan Allen <dan@mojavelinux.com> * @access public * @since PHP 4.2.1
Index: pear/XML_XPath/XPath.php diff -u pear/XML_XPath/XPath.php:1.11 pear/XML_XPath/XPath.php:1.12 --- pear/XML_XPath/XPath.php:1.11 Thu Jun 6 19:13:23 2002 +++ pear/XML_XPath/XPath.php Thu Jun 6 20:13:14 2002 @@ -17,7 +17,7 @@ // | Authors: Dan Allen <dan@mojavelinux.com> | // +----------------------------------------------------------------------+ -// $Id: XPath.php,v 1.11 2002/06/06 23:13:23 dallen Exp $ +// $Id: XPath.php,v 1.12 2002/06/07 00:13:14 dallen Exp $ // }}} // {{{ description @@ -53,9 +53,9 @@ // {{{ includes require_once 'PEAR.php'; -require_once dirname(__FILE__) . '/XPath/common.php'; -require_once dirname(__FILE__) . '/XPath/result.php'; -require_once dirname(__FILE__) . '/XPath/error.php'; +require_once 'XPath/common.php'; +require_once 'XPath/result.php'; +require_once 'XPath/error.php'; // }}} @@ -65,7 +65,7 @@ * The main "XML_XPath" class is simply a container class with some methods for * creating DOM xml objects and preparing error codes * - * @version Revision: 1.0 + * @version Revision: 1.1 * @author Dan Allen <dan@mojavelinux.com> * @access public * @since PHP 4.2.1 Index: pear/XML_XPath/package.xml diff -u pear/XML_XPath/package.xml:1.5 pear/XML_XPath/package.xml:1.6 --- pear/XML_XPath/package.xml:1.5 Thu Jun 6 06:54:35 2002 +++ pear/XML_XPath/package.xml Thu Jun 6 20:13:14 2002 @@ -1,39 +1,46 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE package SYSTEM "../package.dtd"> -<package version="1.0"> +<package version="1.0" type="source"> <name>XML_XPath</name> - <summary>Xpath/DOM XML manipulation, maneuvering and query interface.</summary> - <description> - Allows for easy manipulation, maneuvering and querying of a domxml tree using - both xpath queries and DOM walk functions. It uses an internal pointer for all - methods on which the action is performed. Results from an xpath query are returned - as an XPath_Result object, which contains all the DOM functions from the main object. - This class tries to hold as close as possible to the DOM Recommendation. + <summary>The PEAR::XML_XPath class provided an XPath/DOM XML manipulation, maneuvering and query interface.</summary> + <description> + The PEAR::XML_XPath class provided an XPath/DOM XML manipulation, maneuvering and + query interface. - The XML_XPath class was inpired by a class maintained by Nigel Swinson called phpxpath. - The phpxpath class does not rely on PHP xmldom functions and is therefore a sibling to - this class: http://sourceforge.net/projects/phpxpath - </description> - <maintainers> - <maintainer> - <user>dallen</user> - <name>Dan Allen</name> - <email>dallen@php.net</email> - <role>lead</role> - </maintainer> - </maintainers> + The class allows for easy manipulation, maneuvering and querying of a domxml tree using + both xpath queries and DOM walk functions. It uses an internal pointer for all + methods on which the action is performed. Results from an dom/xpath query are returned + as an XPath_Result object, which contains an internal array of DOM nodes and which extends + the common DOM class and hence contains all the DOM functions from the main object to run + on each of the elements in the internal array. This class tries to hold as close as possible to the DOM Recommendation. You MUST have the domxml extension to use this class. + + The XML_XPath class was inspired by a class maintained by Nigel Swinson called phpxpath. + The phpxpath class does not rely on PHP xmldom functions and is therefore a sibling to + this class: http://sourceforge.net/projects/phpxpath + </description> + <maintainers> + <maintainer> + <user>dallen</user> + <name>Dan Allen</name> + <email>dallen@php.net</email> + <role>lead</role> + </maintainer> + </maintainers> + <release> + <license>PHP License</license> + <date>2002-05-23</date> + <state>beta</state> + <version>1.1</version> <deps> <dep type="php" rel="ge" version="4.2.1" /> + <dep type="ext" rel="has">domxml</dep> </deps> - <release> - <license>PHP 2.01</license> - <state>beta</state> - <version>1.0</version> - <date>2002-05-23</date> - <notes> - This is the initial independent PEAR release. - </notes> - <filelist> + <notes> + * relative XPath queries + * enhancements to result object + * addition DOM functions (childNodes(), getElementsByTagName()) + </notes> + <filelist> <dir name="/" baseinstalldir="XML"> <file role="php">XPath.php</file> <dir name="XPath"> @@ -41,7 +48,37 @@ <file role="php">result.php</file> <file role="php">error.php</file> </dir> + <dir name="docs" role="doc"> + <file>XML_XPath_example.php</file> + </dir> </dir> </filelist> </release> + <changelog> + <release> + <version>1.0</version> + <date>2002-05-23</date> + <state>beta</state> + <notes> + This is the initial independent PEAR release. + </notes> + </release> + <release> + <version>1.1</version> + <date>2002-06-06</date> + <state>beta</state> + <notes> + This version brings major enhancements to the API + * childNode(), siblingNode() removed and features are relocated + * added childNodes() which returns an XML_XPath_result object of all children + * added getElementByTagName which returns an XML_XPath_result object of all matching tags + * step functions in result object are now next(), end(), rewind() and nextByNode(Name|Type) + * calling next() after rewind() in the result object counts the first object again, so a regular + while loop can be used + * relative XPath queries are now enabled (getNodePath() provides this functionality) + * better error reports generated and will continue to improve with the domxml extension + * setNodeIndex() in result object removed + </notes> + </release> + </changelog> </package> Index: pear/XML_XPath/XPath/common.php diff -u pear/XML_XPath/XPath/common.php:1.14 pear/XML_XPath/XPath/common.php:1.15 --- pear/XML_XPath/XPath/common.php:1.14 Thu Jun 6 06:53:54 2002 +++ pear/XML_XPath/XPath/common.php Thu Jun 6 20:13:15 2002 @@ -17,7 +17,7 @@ // | Authors: Dan Allen <dan@mojavelinux.com> | // +----------------------------------------------------------------------+ -// $Id: common.php,v 1.14 2002/06/06 10:53:54 dallen Exp $ +// $Id: common.php,v 1.15 2002/06/07 00:13:15 dallen Exp $ // }}} // {{{ description @@ -97,7 +97,7 @@ * an xpath query is executed and can be used to cycle through the * result nodeset or data * - * @version Revision: 1.0 + * @version Revision: 1.1 * @author Dan Allen <dan@mojavelinux.com> * @access public * @since PHP 4.2.1 Index: pear/XML_XPath/XPath/error.php diff -u pear/XML_XPath/XPath/error.php:1.3 pear/XML_XPath/XPath/error.php:1.4 --- pear/XML_XPath/XPath/error.php:1.3 Fri May 24 01:05:16 2002 +++ pear/XML_XPath/XPath/error.php Thu Jun 6 20:13:15 2002 @@ -17,7 +17,7 @@ // | Authors: Dan Allen <dan@mojavelinux.com> | // +----------------------------------------------------------------------+ -// $Id: error.php,v 1.3 2002/05/24 05:05:16 dallen Exp $ +// $Id: error.php,v 1.4 2002/06/07 00:13:15 dallen Exp $ // }}} // {{{ description @@ -31,7 +31,7 @@ /** * Error class for the XML_XPath interface, which just prepares some variables and spawns PEAR_Error * - * @version Revision: 1.0 + * @version Revision: 1.1 * @author Dan Allen <dan@mojavelinux.com> * @access public * @since PHP 4.2.1 Index: pear/XML_XPath/XPath/result.php diff -u pear/XML_XPath/XPath/result.php:1.8 pear/XML_XPath/XPath/result.php:1.9 --- pear/XML_XPath/XPath/result.php:1.8 Thu Jun 6 06:51:53 2002 +++ pear/XML_XPath/XPath/result.php Thu Jun 6 20:13:15 2002 @@ -17,7 +17,7 @@ // | Authors: Dan Allen <dan@mojavelinux.com> | // +----------------------------------------------------------------------+ -// $Id: result.php,v 1.8 2002/06/06 10:51:53 dallen Exp $ +// $Id: result.php,v 1.9 2002/06/07 00:13:15 dallen Exp $ // }}} // {{{ description @@ -45,7 +45,7 @@ * Interface for an XML_XPath result so that one can cycle through the result set and manipulate * the main tree with DOM methods using a seperate pointer then the original class. * - * @version Revision: 1.0 + * @version Revision: 1.1 * @author Dan Allen <dan@mojavelinux.com> * @access public * @since PHP 4.2.1