Hi,
I think the removechild function
doesn't work.
THe XML
file:
users>
$xml
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
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
> 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
> 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 (
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
> 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 -
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
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
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 ???"
>
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
> 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
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
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
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
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
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
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
18 matches
Mail list logo