[ANNOUNCEMENT] XML_XPath-1.2 (beta) Released.
| From: | PEAR Announce | Date: | Fri, 07 Jun 2002 23:24:51 +0000 |
| Subject: | [ANNOUNCEMENT] XML_XPath-1.2 (beta) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-1609@lists.php.net to get a copy of this message | ||
The new PEAR package XML_XPath-1.2 (beta) has been released at http://pear.php.net/.
Release notes
-------------
* Very important to note that the DOM step functions do not take an optional xpath query. The
reason I designed it this way is because the outcome would be too difficult to deal with, since
one of 4 different scenarios could take place. Plus, it just doesn't make any sense.
* Significant speed enhancements (almost 100% faster)
Major changes:
* getAttribute('foo', true) now puts you on the attribute, not the element node
* cleaned up the XML_XPath_result initialization (no longer create an StdClass when calling class)
* fixed sorting for childNodes() and getElementsByTagName() generated result objects
* cleaned up sorting in result object, and added comments (so I don't forget again how I did
it)
* major speed enhancements (calling user defined functions methods is slow, so tried to trim that
down)
* don't create a result object in the _quick_evaluate function since we don't need it
anyway
* enabled relative xpath queries differently, in_xpathQuery = array(query, node) for relative...
* added relative xpath queries for the _quick_evaluate feature
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.2.tgz
Authors
-------------
Dan Allen (lead)