[phpXML] RE: [phpXML] Patches since 1.N.5
Brought to you by:
bs_php,
nigelswinson
From: <o.t...@ab...> - 2001-10-08 18:28:42
|
Hi, I think the removechild function doesn't work. THe XML file: <users> <user us_fullname="aa" us_username="a" us_password="a" us_workspace="RI" us_email="aa" /> <user us_fullname="rr" us_username="rr" us_password="rr" us_workspace="RI" us_email="rr" /> </users> $xml->removechild("/users[1]/user[1]"); Result: </> Oliver -----Original Message----- From: nig...@us... [mailto:nig...@us...] Sent: donderdag 27 september 2001 2:43 To: us...@li... Subject: [phpXML] Patches since 1.N.5 Complete list of changes todate. _____ 110c110 < return $this->exportAsXml($absoluteXPath[$index]); --- > return $this->exportAsXml($absoluteXPathArray[$index]); 219c219 < return setAttributes($absoluteXPath, $aNewAttributes); --- > return $this->setAttributes($absoluteXPath, $aNewAttributes); 221c221 < return setAttributes($absoluteXPath, $attributes); --- > return $this->setAttributes($absoluteXPath, $attributes); 248c248 < return setAttributes($absoluteXPath, $attributes); --- > return $this->setAttributes($absoluteXPath, $attributes); 537c537 < return evaluate($xPathQuery, $baseXPath); --- > return $this->evaluate($xPathQuery, $baseXPath); 560,561c560,561 < if(in_array($path,array_keys($this->nodes))) { < return array($path); --- > if(in_array($xPathQuery,array_keys($this->nodes))) { > return array($xPathQuery); 668c668 < * @param string $path Full document path of the node, the attributes --- > * @param string $xPathQuery Full document path of the node, the attributes 675c675 < return setAttributes($absoluteXPath, array($name => $value)); --- > return $this->setAttributes($absoluteXPath, array($name => $value)); 679,681c679,682 < * Version of setAttribute() that sets multiple windows. < * < * @see setAttribute() --- > * Version of setAttribute() that sets multiple attributes. > * > * @param $attributes associative array of attributes to set. > * @see setAttribute() 683c684 < function setAttributes($absoluteXPath, $attribute) { --- > function setAttributes($absoluteXPath, $attributes) { 687,690c688,692 < if (isSet($this->nodes[$path]['attributes'])) { < $this->nodes[$path]['attributes'] = array_merge($this->nodes[$path]['attributes'], $attributes); < } else { < $this->nodes[$path]['attributes'] = $attributes; --- > if (isSet($this->nodes[$absoluteXPath]['attributes'])) { > $this->nodes[$absoluteXPath]['attributes'] = > array_merge($this->nodes [$absoluteXPath]['attributes'],$attributes); > } else { > $this->nodes[$absoluteXPath]['attributes'] = $attributes; 692c694,695 < } --- > } > 712c715 < unset($this->nodes[$path]['attributes']); --- > unset($this->nodes[$absoluteXPath]['attributes']); 719c722 < unset($this->nodes[$path]['attributes'][$attribute]); --- > unset($this->nodes[$absoluteXPath]['attributes'][$attribute]); 725c728 < unset($this->nodes[$path]['attributes'][$name]); --- > unset($this->nodes[$absoluteXPath]['attributes'][$name]); 769c772 < return $this->nodes[$path]['text']; --- > return $this->nodes[$absoluteXPath]['text']; 816c819 < $ret = implode('', $this->nodes[$path]['text']); --- > $ret = implode('', $this->nodes[$absoluteXPath]['text']); 838c841 < return _setContent($absoluteXPath, $value); --- > return $this->_setContent($absoluteXPath, $value); 849c852 < * @param string $path Full document path of the node. *READONLY* --- > * @param string $xPathQuery Full document path of the node. *READONLY* 854c857 < return _setContent($absoluteXPath, $value, TRUE); --- > return $this->_setContent($absoluteXPath, $value, TRUE); 863c866 < * @param string $path Full document path of the node. *READONLY* --- > * @param string $xPathQuery Full document path of the node. *READONLY* 879c882 < _setContent($absoluteXPath, $newContent); --- > $this->_setContent($absoluteXPath, $newContent); 1997c2000 < if (ereg('^\w*$', $predicate)) { --- > if (ereg('^\w*$', $predicate)) { 3705c3708 < * @param string $path Full document path of the node. *READONLY* --- > * @param string $xPathQuery Full document path of the node. *READONLY* _____ CVS was sick, so all these changes are as yet not in cvs... Nigel =========================== For the most recent version of phpxml, V1.N.X, and an archive of this list visit: http://www.sourceforge.net/projects/phpxmldb <http://www.sourceforge.net/projects/phpxmldb> -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |