[phpXML] RE: [phpXML] Patches since 1.N.5

2001-09-26 Thread o . talens
Hi,   I think the removechild function doesn't work. THe XML file:       users>      $xml

[phpXML] RE: [phpXML] Patches since 1.N.5

2001-09-26 Thread o . talens
Nigel,   What do you mean by this correction (or I don't see the difference):   1997c2000< if (ereg('^\w*$', $predicate)) {---> if (ereg('^\w*$', $predicate)) {   Oliver -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: donderdag 27 septemb

[phpXML] Patches since 1.N.5

2001-09-26 Thread nigelswinson
Complete list of changes todate.   110c110<   return $this->exportAsXml($absoluteXPath[$index]);--->   return $this->exportAsXml($absoluteXPathArray[$index]);219c219< return setAttributes($absoluteXPath, $aNewAttributes);---> return $this->setAttributes($absolute

[phpXML] Re: [phpXML] Re: Basic question about xpath.class.php use

2001-09-26 Thread nigelswinson
> I'm not sure the problem lies in my XML files, I think it lies in the way I > didn't modify my php file. Didn't think it did. Was trying to recreate the problem on my local machine. > At : http://www.interpasnet.com/1.N.5/examples/government/index.php > You'll find Michael P. Mehl. government

[phpXML] Re: [phpXML] Re: [phpXML] Before 1N6

2001-09-26 Thread nigelswinson
> Or if you don't have enough time, just tell me what is now the right > version of this code that worked with xml.php/1N4 : > > > > Doe > John > Yes > > > > $myatrributesarray = array(); > $listofmybuddies = $xml->evaluate('/buddy_list/buddy'); > foreach (

[phpXML] phpxml 1.N.5 "$this->" patch.

2001-09-26 Thread nigelswinson
I think there are many more places where you forgot to add the $this->  for example in the setAttribute function.  Agree, found another couple too   ===For the most recent version of phpxml, V1.N.X, and an archive of this list visit:  http://www.sourceforge.net

[phpXML] Bug in setAttributes

2001-09-26 Thread nigelswinson
> just patched phpxml 1.N.5: > > // OLD -- > function setAttributes($absoluteXPath, $attribute) { > > Tell me where the $path variableis set and why the parameter > $attribute > is called $attributes in the function... > > > // NEW -

[phpXML] Before 1N6

2001-09-26 Thread nigelswinson
Good idea. Will do. Managed to get documentation sent out with 1.N.5, but didn't manage to get examples though. Will try to get this done soon. Any volunteers? :oD === For the most recent version of phpxml, V1.N.X, and an archive of this list visit: http://www.sourcef

[phpXML] RE: [phpXML] Bug in setAttributes

2001-09-26 Thread o . talens
Title: RE: [phpXML] Bug in setAttributes Thanks all folks,   Oliver -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: woensdag 26 september 2001 13:37To: [EMAIL PROTECTED]Subject: [phpXML] Bug in setAttributes After using setAttributes

[phpXML] Re: [phpXML] Before 1N6

2001-09-26 Thread luc
At 11:39 26/09/01 +, [EMAIL PROTECTED] wrote: >Nigel, > >Before releasing 1N6 it would be a Good Thing (tm) to release a 1N5-style >version of original examples (government for example) to avoid the zillions >of question I have about : "how does this new way of Xpath.class.php-ing >work ???" >

[phpXML] Before 1N6

2001-09-26 Thread luc
Nigel, Before releasing 1N6 it would be a Good Thing (tm) to release a 1N5-style version of original examples (government for example) to avoid the zillions of question I have about : "how does this new way of Xpath.class.php-ing work ???" Luc -- This message has been sent through the user

[phpXML] Testing in phpxml and an apology for the bugs in 1.N.5

2001-09-26 Thread nigelswinson
> BTW, did anyone check the code before releasing it? > How else could one miss those bugs like the > "$this ->" thing and the setAttributes-function, > that did not work at all. This is a completely valid complaint, and I think I should explain the "histroy" of the 1.N.5 release a bit more to yo

[phpXML] Bug in setAttributes

2001-09-26 Thread nigelswinson
Title: RE: [phpXML] Bug in setAttributes After using setAttributes ($xml->setAttributes("/users[1]/Nodename[1]",array("atr1","atr2"));) I get the following incorrect result:   Where do the 0 and 1 come from? The array that you use for setAttributes should be an associative array

[phpXML] Help us make XPath.class.php (former XML.php) even better.

2001-09-26 Thread bs_php
To all that use XPath.class.php (former XML.php) Oliver Talens posed the question: "Did anyone check the code before releasing it?" Indeed I actually wrote a test bench with about 60 tests. But all current tests are only querying a XML file NOT modifying it. With help of the test bench I wa

[phpXML] RE: [phpXML] phpxml 1.N.5 "$this->" patch.

2001-09-26 Thread o . talens
I think there are many more places where you forgot to add the $this->  for example in the setAttribute function.   Oliver -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: woensdag 26 september 2001 0:51To: [EMAIL PROTECTED]Subject: [phpXML] phpx

[phpXML] RE: [phpXML] Bug in setAttributes

2001-09-26 Thread o . talens
Title: RE: [phpXML] Bug in setAttributes After using setAttributes ($xml->setAttributes("/users[1]/Nodename[1]",array("atr1","atr2"));) I get the following incorrect result:   Where do the 0 and 1 come from? Oliver -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PR

[phpXML] Bug in setAttributes

2001-09-26 Thread a . tietje
Hi, just patched phpxml 1.N.5: // OLD -- function setAttributes($absoluteXPath, $attribute) { // The attributes parameter should be an associative array. if (!is_array($attributes)) return; // Add the attributes to the node. if (isSet($this

[phpXML] Re: Basic question about xpath.class.php use

2001-09-26 Thread luc
Nigel, I'm not sure the problem lies in my XML files, I think it lies in the way I didn't modify my php file. At : http://www.interpasnet.com/1.N.5/examples/government/index.php You'll find Michael P. Mehl. government example with only two changes : 1) call to (include) php file xplath.class.ph