Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Jun 07, 2002

  1. This commit was manufactured by cvs2svn to create tag 'RELEASE_1_2'.

    Gwynne Raskind authored
  2. release 1.2 notes

    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@85013 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  3. 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
    anything else I just can't remember I will mention in my next commit
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@85012 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  4. official example, not much yet, but the idea is there

    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84890 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  5. getting ready for release

    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84889 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored

Jun 06, 2002

  1. resolve this damn include file problem

    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84888 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  2. updates

    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84824 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  3. forgot to add error.php

    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84823 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  4. @ added getElementsByTagName to return an XML_XPath_result object of …

    …all matching tagnames
    
    - deleted childNode() and siblingNode() which were hacks for stepping through children based
    on node name (see result.php for this functionality now)
    @ added getNodePath() for use with relative xpath queries (this is until we can get this
    function in the php extension
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84822 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  5. - reworked the stepping concept...now have

    next()
    end()
    rewind()
    nextByNodeName()
    nextByNodeType()
    when next() is used after a rewind() or the first time (because the constructor
    calls rewind()), it counts the first node when it is first run as the first "next"...
    it is like saying that we aren't on the array yet and next moves us onto the array...
    the nice part however is that physically you are already on the first node, so you
    can just start calling dom function on your result without having to "advance" your
    pointer to the first node
    - nextByNode* replace the childNode() and siblingNode() concepts from common
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84821 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  6. @ added the ability to do relative xpath queries by prepending the cu…

    …rrent location path
    
    to the query when the third parameter is true
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84812 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored

Jun 05, 2002

  1. keepin' you updated!

    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84682 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  2. @ added childNodes() which takes the current pointer and returns all …

    …of the non-blank (if set)
    
    children as an xml_xpath_result object so that the result object functions can be used to
    step through the results...one disadvantage right now is that since it is not an actually xpath
    query, I can't resort the results, so that result function will be broken when the result object
    is generated in this manner...hang in there, I am working on this...
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84681 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  3. temporary addition of some libxml2 error capturing...the domxml modul…

    …e is currently
    
    undergoing development to capture these error logs into an array, but for now I use
    output buffering and then run the domxml_open_* without an @ so that errors will go
    to stdout, which are then captured and passed to the PEAR::raiseError method
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@84680 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored

May 24, 2002

  1. - Changed function names and prefixes from XPath to XML_XPath

    - updated new function names for domxml extension
    - lots of bugfixes
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@83347 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored

Apr 01, 2002

  1. Credit the phpxpath team

    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@76135 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored

Mar 16, 2002

  1. added $Id$ line to class files

    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@73543 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  2. - bug in use of static in getChildByTagName...note with this function…

    … that it is going to
    
    move you to the child, so you can't run it twice without first using $xml->parentNode() to get
    back to the parent...
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@73515 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  3. @ added getChildByTagName(), which is not a DOM function, but very co…

    …nvenient. It gets the direct
    
    descendant of the pointer with the tagname given, and if index is provided, it finds the nth
    occurance of this child.  This function utilizes caching to speed up same parent consecutive
    queries
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@73514 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored

Mar 15, 2002

  1. - bug in nextSibling that was causing the pointer to go beyond the la…

    …st sibling and caused
    
      a call to a non-object
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@73414 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  2. Just so you know what is going on in my mind.

    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@73338 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  3. @ added intial support for XPath_Result::sort(). Works by taking a re…

    …lative xpath query to
    
      the nodes in the nodeset and sorts using php array sort functions.  I am hoping for sort
      support in XPathObject in the future, but this isn't bad for now.
    @ new constants for handling sorting flags
    - bugfixes in setNodeIndex()
    - renamed resetResult() to just reset()
    - free() just kills $this variable
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@73337 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored

Mar 14, 2002

  1. - node_name() fixed for XML_DOCUMENT_NODE and XML_ATTRIBUTE_NODE in d…

    …omxml php module...so updated
    
    - moved XPath_Error into file errors.php in the XPath directory
    - updated package name to use _ and not /
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@73243 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored

Mar 12, 2002

  1. - method name() is different from node_name() for attributes (hence d…

    …idn't give proper result before)
    
    - getOne returns exactly what an xsl:value-of select would return...before it returned the size
      of the nodeset, which was inconvient when wanted to do /doc/child/@attribute to retrieve data
    - fixed some missing documentation for one method
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@73027 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  2. - added a constant for XML_DUPLICATE_ROOT

    - added free() function to garbage collect
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@72853 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  3. - prevent the use of appendChild() on the document node if a root nod…

    …e already exists.
    
      This would lead to an invalid document being created.
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@72847 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  4. @ added format to toString() function using xmllint commandline (this…

    … will become
    
      more formal a little later)
    - new XPath() returns an error if load fails in contructor
    - typos
    - xpath_new_context can be called as a method of $this->xml
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@72823 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored

Mar 11, 2002

  1. @ added the use of the domxml_node_unlink function since the CVS vers…

    …ion (also PHP_4_2_0 branch)
    
      seems to work fine (without segfaulting or corrupting the dom tree).  Previously this was a HACK
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@72726 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  2. The php function is_a is either not working correctly or I don't know…

    … how to use it properly.
    
    Either way, I decided it best that I rename my custom is_a() function to an alternate name just so
    there is no conflict in implementation.  I renamed the function to is_class_type, which emulates
    the functionality described in the function is_a() in the php manual.
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@72725 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  3. - Set state to beta while working on testing (and waiting for php 4.2.0)

    - added deps for php 4.2.0
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@72698 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  4. Initial release. Mostly stable but not yet extensively tested. Requir…

    …es the
    
    newest CVS version of domxml since many domxml functions have been implemented
    in the last few days.  This package will be most significant for php-4.2.0.
    
    
    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@72690 c90b9560-bf6c-de11-be94-00142212c4b1
    Daniel Allen authored
  5. Standard project directories initialized by cvs2svn.

    git-svn-id: http://svn.php.net/repository/pear/packages/XML_XPath/trunk@72689 c90b9560-bf6c-de11-be94-00142212c4b1
    Gwynne Raskind authored
Something went wrong with that request. Please try again.