[phpXML] My changes to xml.php -and- an RSS/RDF parser example
Brought to you by:
bs_php,
nigelswinson
From: <tom...@di...> - 2001-10-04 12:15:25
|
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 |