Skip to content

Commit

Permalink
getting ready for release
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84889 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Daniel Allen committed Jun 7, 2002
1 parent bc17ab0 commit e999901
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 36 deletions.
8 changes: 4 additions & 4 deletions XPath.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
// {{{ includes // {{{ includes


require_once 'PEAR.php'; require_once 'PEAR.php';
require_once dirname(__FILE__) . '/XPath/common.php'; require_once 'XPath/common.php';
require_once dirname(__FILE__) . '/XPath/result.php'; require_once 'XPath/result.php';
require_once dirname(__FILE__) . '/XPath/error.php'; require_once 'XPath/error.php';


// }}} // }}}


Expand All @@ -65,7 +65,7 @@
* The main "XML_XPath" class is simply a container class with some methods for * The main "XML_XPath" class is simply a container class with some methods for
* creating DOM xml objects and preparing error codes * creating DOM xml objects and preparing error codes
* *
* @version Revision: 1.0 * @version Revision: 1.1
* @author Dan Allen <dan@mojavelinux.com> * @author Dan Allen <dan@mojavelinux.com>
* @access public * @access public
* @since PHP 4.2.1 * @since PHP 4.2.1
Expand Down
2 changes: 1 addition & 1 deletion XPath/common.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function is_a_php_class($class, $match)
* an xpath query is executed and can be used to cycle through the * an xpath query is executed and can be used to cycle through the
* result nodeset or data * result nodeset or data
* *
* @version Revision: 1.0 * @version Revision: 1.1
* @author Dan Allen <dan@mojavelinux.com> * @author Dan Allen <dan@mojavelinux.com>
* @access public * @access public
* @since PHP 4.2.1 * @since PHP 4.2.1
Expand Down
2 changes: 1 addition & 1 deletion XPath/error.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/** /**
* Error class for the XML_XPath interface, which just prepares some variables and spawns PEAR_Error * 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> * @author Dan Allen <dan@mojavelinux.com>
* @access public * @access public
* @since PHP 4.2.1 * @since PHP 4.2.1
Expand Down
2 changes: 1 addition & 1 deletion XPath/result.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
* Interface for an XML_XPath result so that one can cycle through the result set and manipulate * 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. * 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> * @author Dan Allen <dan@mojavelinux.com>
* @access public * @access public
* @since PHP 4.2.1 * @since PHP 4.2.1
Expand Down
95 changes: 66 additions & 29 deletions package.xml
Original file line number Original file line Diff line number Diff line change
@@ -1,47 +1,84 @@
<?xml version="1.0" encoding="ISO-8859-1" ?> <?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE package SYSTEM "../package.dtd"> <!DOCTYPE package SYSTEM "../package.dtd">
<package version="1.0"> <package version="1.0" type="source">
<name>XML_XPath</name> <name>XML_XPath</name>
<summary>Xpath/DOM XML manipulation, maneuvering and query interface.</summary> <summary>The PEAR::XML_XPath class provided an XPath/DOM XML manipulation, maneuvering and query interface.</summary>
<description> <description>
Allows for easy manipulation, maneuvering and querying of a domxml tree using The PEAR::XML_XPath class provided an XPath/DOM XML manipulation, maneuvering and
both xpath queries and DOM walk functions. It uses an internal pointer for all query interface.
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.


The XML_XPath class was inpired by a class maintained by Nigel Swinson called phpxpath. The class allows for easy manipulation, maneuvering and querying of a domxml tree using
The phpxpath class does not rely on PHP xmldom functions and is therefore a sibling to both xpath queries and DOM walk functions. It uses an internal pointer for all
this class: http://sourceforge.net/projects/phpxpath methods on which the action is performed. Results from an dom/xpath query are returned
</description> as an XPath_Result object, which contains an internal array of DOM nodes and which extends
<maintainers> the common DOM class and hence contains all the DOM functions from the main object to run
<maintainer> 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.
<user>dallen</user>
<name>Dan Allen</name> The XML_XPath class was inspired by a class maintained by Nigel Swinson called phpxpath.
<email>dallen@php.net</email> The phpxpath class does not rely on PHP xmldom functions and is therefore a sibling to
<role>lead</role> this class: http://sourceforge.net/projects/phpxpath
</maintainer> </description>
</maintainers> <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> <deps>
<dep type="php" rel="ge" version="4.2.1" /> <dep type="php" rel="ge" version="4.2.1" />
<dep type="ext" rel="has">domxml</dep>
</deps> </deps>
<release> <notes>
<license>PHP 2.01</license> * relative XPath queries
<state>beta</state> * enhancements to result object
<version>1.0</version> * addition DOM functions (childNodes(), getElementsByTagName())
<date>2002-05-23</date> </notes>
<notes> <filelist>
This is the initial independent PEAR release.
</notes>
<filelist>
<dir name="/" baseinstalldir="XML"> <dir name="/" baseinstalldir="XML">
<file role="php">XPath.php</file> <file role="php">XPath.php</file>
<dir name="XPath"> <dir name="XPath">
<file role="php">common.php</file> <file role="php">common.php</file>
<file role="php">result.php</file> <file role="php">result.php</file>
<file role="php">error.php</file> <file role="php">error.php</file>
</dir> </dir>
<dir name="docs" role="doc">
<file>XML_XPath_example.php</file>
</dir>
</dir> </dir>
</filelist> </filelist>
</release> </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> </package>

0 comments on commit e999901

Please sign in to comment.