[ANNOUNCEMENT] XML_XPath-1.1 (beta) Released.
| From: | PEAR Announce | Date: | Fri, 07 Jun 2002 00:22:22 +0000 |
| Subject: | [ANNOUNCEMENT] XML_XPath-1.1 (beta) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-1600@lists.php.net to get a copy of this message | ||
The new PEAR package XML_XPath-1.1 (beta) has been released at http://pear.php.net/.
Release 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
Package Info
-------------
The PEAR::XML_XPath class provided an XPath/DOM XML manipulation, maneuvering and
query interface.
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
Related Links
-------------
Package home: http://pear.php.net/package-info.php?package=XML_XPath
Changelog: http://pear.php.net/package-changelog.php?package=XML_XPath
Download: http://pear.php.net/get/XML_XPath-1.1.tgz
Authors
-------------
Dan Allen (lead)