[phpXML] RE: [phpXML] My changes to xml.php -and- an RSS/RDF parser example
Brought to you by:
bs_php,
nigelswinson
From: <phi...@ls...> - 2001-10-05 10:15:54
|
I am trying to use the RDF/RSS Parser, but I receive the following error for any file that I try; Warning: Invalid range end in /home/httpd/html/xml.php on line 1866 phpXML error: While parsing the XPath expression "//channel" an empty and therefore invalid node-test has been found. Am I missing something? Philip Cohen --------------- Webmaster Large Scale Biology Corporation (707) 446-5501 x354 phi...@ls... > -----Original Message----- > From: tom...@di... > [mailto:tom...@di...] > Sent: Thursday, June 28, 2001 17:39 > To: us...@li... > Subject: [phpXML] My changes to xml.php -and- an RSS/RDF parser example > > > Hello all, > > =================================================== > My changes to "xml.php" > > Near line 125 > // var $entities = array ( "&" => "&", "<" => "<", ">" => > ">","'" => "&apos", '"' => """ ); > // == Error: in the val for "'" the semicolon is missing in "&apos" > // Also tried alternates of ’ and ‘ (for "'") > but no help > // DANGER The substitutions for ' and " have been removed == > by TJH === > var $entities = array ( "&" => "&", "<" => "<", ">" > => ">"); > > > Near line 200 > function load_file ( $file ) > { > // Check whether the file exists and is readable. > // if ( file_exists($file) && is_readable($file) ) // Does > not work > for remote files > if ( $file ) // === TJH === allows me to read remote > files (i.e. via > http:// request) > // is there a better way to do this for remote files ??????? > > > =================================================== > My first attempt -- a RSS/RDF parser > > Attached is for parsing and rendering RSS/RDF files -- I got it > working but > I'd appreciate comments on the coding - if feels like a real kludge but I > see no other way to do it. > > Your comments on the coding will be appreciated. > > =================================================== > > > Many thanks to M.M. for phpXML! > > Sincerely, > Tom Henry -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |