[phpXML] Re: [phpXML] Undefined Index Line 443 when opening Xml file.
Brought to you by:
bs_php,
nigelswinson
|
From: <mf...@mr...> - 2001-10-05 10:16:13
|
Hoi,
I had the same problem.=20
Very simple: Mehl don't initialize his arrays. He wants the array values =
to be 0, "" or false then and this works with some php configurations =
but not with yours and mine.
So take the xml.php and insert the line
if ( !isset($this->ids[$path]) ) $this -> ids[$path] =3D 0;
before line 433 and your problem should be solved. Be aware that the =
problem occurs also on other lines in xml.php.
Unfortunately, after your change your xml.php has another line count =
then and discussion with other users is dependend on same line number.
success!
--=20
Marko Faldix
M+R infosysteme
Hubert-Wienen-Str. 24 52070 Aachen
Tel.: 0241-93878-16 Fax.:0241-875095
E-Mail: mf...@mr...
----- Original Message -----=20
From: Ni...@Sw...=20
To: us...@li...=20
Sent: Friday, June 29, 2001 1:33 AM
Subject: [phpXML] Undefined Index Line 443 when opening Xml file.
=20
Hi there. Firstly thankyou for phpxml. I think it's greate and can't =
wait to use it!
I've found what I think is a bug though and wondered if you could help =
me. When I try to parse the attached xml file with xmlphp V1 I get the =
following error:
Error=20
scripts/php/xml.php
Line 443: Error: 8: Undefined index: /DownloadDb
I've attached the script that I am running it from too if you want to =
see that I am calling your class correctly. As all I'm doing is =
creating the class, I don't think I'm doing anything wrong! Essentially =
all I am doing is "$xml =3D new XML("downloads.xml");" and I get the =
above error.
Can anyone help me, or has no-one signed up to this list yet. :o)
Also is this list going to be archived somewhere?
Nigel
|