[phpXML] Re: [phpXML] beginners question
Brought to you by:
bs_php,
nigelswinson
From: <yf...@co...> - 2001-10-08 16:23:02
|
One thing I would do to start is use include(path_to_xml.php); instead of require. Young At 03:38 PM 7/11/2001 +0000, you wrote: >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 : > ><? > require getenv('DOCUMENT_ROOT') . '/../common/xml.php'; > $doc = new XML('base.xml'); > echo $doc->get_file(); >?> > >The base.xml document contains only this : ><?xml version="1.0" encoding="iso-8859-1"?> ><test> ></test> > >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/> > >All examples in the package (governement, xpath) generated simular problems. >What am i doing wrong ?.. > >Pieter Bosteels >i-Merge > > >-- >This message has been sent through the <phpXML/> user discussion list. To >unsubscribe, please visit >https://sslsites.de/mailinglisten/user/us...@li.../ -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |