Permalink
Browse files

getting ready for release

git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84889 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent bc17ab0 commit e999901d0bb58699200218f4a4479d1d1fb20dc9 Daniel Allen committed Jun 7, 2002
Showing with 73 additions and 36 deletions.
  1. +4 −4 XPath.php
  2. +1 −1 XPath/common.php
  3. +1 −1 XPath/error.php
  4. +1 −1 XPath/result.php
  5. +66 −29 package.xml
View
8 XPath.php
@@ -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
View
2 XPath/common.php
@@ -97,7 +97,7 @@ function is_a_php_class($class, $match)
* 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
View
2 XPath/error.php
@@ -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
View
2 XPath/result.php
@@ -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
View
95 package.xml
@@ -1,47 +1,84 @@
<?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">
<file role="php">common.php</file>
<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>

0 comments on commit e999901

Please sign in to comment.