[phpXML] Re: [phpXML] My changes to xml.php -and- an RSS/RDF parser example
Brought to you by:
bs_php,
nigelswinson
|
From: <sp...@or...> - 2001-10-05 10:15:25
|
To convert ' to ' can make problems in browser when you use
charset=ISO-8859-1
So better delete the hole &apos entry
> Von: tom...@di...
> Antworten an: us...@li...
> Datum: 29 Jun 2001 00:39:09 -0000
> An: us...@li...
> Betreff: [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.../
|