[phpXML] Re: [phpXML] beginners question
Brought to you by:
bs_php,
nigelswinson
From: <nig...@us...> - 2001-10-09 13:11:33
|
Phpxml was written on a system that didn't care if an array index wasn't = set yet. The windows PHP engine isn't one of these so you need loads of = if (!isset(arrayentry)) {arrayentry =3D ""} bits throughout your code. I've attached Tim Strehle's patch for this bug. I haven't tried it = myself, but it was the first one that came to hand. Contrary to the other posting by yf32, I would recommend you use = require_once() as xml.php doesn't change, and contains only definitions. Nigel (What do you know, we made it more than 24 hours without a posting to = this list :o) ----- Original Message -----=20 From: <pie...@si...> To: <us...@li...> Sent: Wednesday, July 11, 2001 4:37 PM Subject: [phpXML] beginners question >=20 > I tried to use the phpxml package (latest version on = http://www.phpxml.org/) > but i encountered errors when running the included example files. > Even a very simple test i made generated an error : >=20 > <? > require getenv('DOCUMENT_ROOT') . '/../common/xml.php'; > $doc =3D new XML('base.xml'); > echo $doc->get_file(); > ?> >=20 > The base.xml document contains only this : > <?xml version=3D"1.0" encoding=3D"iso-8859-1"?> > <test> > </test> >=20 > I expected this to just display this simple XML document, but instead = it > generated errors : > <br> > <b>Warning</b>: Undefined index: /test in = <b>/www/wine/common/xml.php</b> > on line <b>443</b><br> > <br> > <b>Warning</b>: Undefined index: in <b>/www/wine/common/xml.php</b> = on > line <b>456</b><br> > <br> > <b>Warning</b>: Undefined index: in <b>/www/wine/common/xml.php</b> = on > line <b>464</b><br> > <test/> >=20 > All examples in the package (governement, xpath) generated simular = problems. > What am i doing wrong ?.. >=20 > Pieter Bosteels > i-Merge >=20 >=20 > -- > This message has been sent through the <phpXML/> user discussion list. = To unsubscribe, please visit = https://sslsites.de/mailinglisten/user/us...@li.../ >=20 |