Fresh          
 
 
             '                      print "Hello World!"; if not rules.know then rules.read();   

   > >

« | »
 



  #1  
27-05-2006, 09:42
  Imial3 Imial3   
 
: 13.04.06
: 48
RSS

PHP:
<?php
$file 
"http://www.haaretz.co.il/hasite/objects/pages/sportRss.jhtml";
$map_array = array(
   
"BOLD"    => "B",
   
"EMPHASIS" => "I",
   
"LITERAL"  => "TT"
);

function 
startElement($parser$name$attrs
{
   global 
$map_array;
   if (isset(
$map_array[$name])) {
       echo 
"<$map_array[$name]>";
   }
}

function 
endElement($parser$name
{
   global 
$map_array;
   if (isset(
$map_array[$name])) {
       echo 
"</$map_array[$name]>";
   }
}

function 
characterData($parser$data
{
   echo 
$data;
}

$xml_parser xml_parser_create();
// use case-folding so we are sure to find the tag in $map_array
xml_parser_set_option($xml_parserXML_OPTION_CASE_FOLDINGtrue);
xml_set_element_handler($xml_parser"startElement""endElement");
xml_set_character_data_handler($xml_parser"characterData");
if (!(
$fp fopen($file"r"))) {
   die(
"could not open XML input");
}

while (
$data fread($fp4096)) {
   if (!
xml_parse($xml_parser$datafeof($fp))) {
       die(
sprintf("XML error: %s at line %d",
                   
xml_error_string(xml_get_error_code($xml_parser)),  
                   
xml_get_current_line_number($xml_parser)));
   }
}
xml_parser_free($xml_parser);
?>

PHP.NET


RSS



Copyright (c) 2005 Haaretz. All rights reserved. http://www.haaretz.co.il/hasite/pag...SubContrassID=0 ׳&iexcl;׳₪׳•׳׳˜ he 10 32 129 http://www.haaretz.co.il ׳”׳׳׳ http://www.haaretz.co.il/hasite/images/LogoRss.jpg ׳׳—׳ ׳₪׳׳ ׳׳׳׳” ׳׳’׳׳ ׳˜׳•׳׳ ׳™׳ ׳׳™׳&iexcl;׳˜׳ ׳‘׳•׳ http://www.haaretz.co.il/hasite/pag...SubContrassID=0 Fri,26 May 2006 17:34 ׳₪׳׳ ׳”׳‘׳™׳&iexcl;׳” ׳׳ ׳׳ ׳”-׳׳ ׳” ׳’׳׳•׳ ׳₪׳׳“ 0:6, 2:6 ׳”׳₪׳&iexcl;׳™׳“׳” ׳‘׳–׳•׳’׳•׳; ׳&iexcl;׳‘׳׳ ׳&iexcl;׳׳™ ׳›׳‘׳ ׳‘׳&iexcl;׳™׳‘׳•׳‘ ׳”׳׳׳™׳׳™ ׳‘׳׳•׳׳“׳׳•׳ ׳׳•׳׳׳ ׳’׳׳׳•׳&iexcl; ׳׳׳ ׳׳׳™ ׳”׳™׳₪׳ ׳’׳׳ ׳”׳׳–׳׳—: ׳“׳˜׳׳•׳™׳˜ ׳ ׳™׳׳—׳” ׳׳ ׳׳™׳׳׳™ 88:92 http://www.haaretz.co.il/hasite/pag...SubContrassID=0 Fri,26 May 2006 12:15 ׳׳—׳׳™ ׳”׳”׳₪׳&iexcl;׳“ ׳‘׳׳׳—׳ ׳”׳׳׳׳•׳ ׳׳ ׳”׳•׳׳™׳׳• ׳׳—׳׳ ׳™ ׳“׳˜׳׳•׳™׳˜ ׳&iexcl;׳™׳›׳•׳™ ׳׳׳™׳׳׳™; ׳˜׳™׳™׳׳•׳ ׳₪׳׳™׳ ׳&iexcl; ׳‘׳׳˜ ׳׳ 24 ׳ ׳׳•׳“׳•׳ ׳׳™׳׳•׳ "׳”׳׳׳" ׳”׳₪׳&iexcl;׳“׳™׳ ׳׳™׳׳׳׳׳™׳ ׳‘׳׳׳™׳₪׳•׳ ׳׳™׳׳•׳₪׳” ׳‘׳’'׳•׳“׳• http://www.haaretz.co.il/hasite/pag...SubContrassID=0 Fri,26 May 2006 16:57 ׳’׳ ׳™׳׳•׳׳™׳׳, ׳™׳•׳׳ ׳׳–׳‘׳•׳–׳•׳‘, ׳׳‘׳™ ׳׳₪׳׳ ׳•׳&iexcl;׳™׳•׳•׳ ׳׳–׳׳—׳™ ׳”׳₪׳&iexcl;׳™׳“׳• ׳‘׳&iexcl;׳™׳‘׳•׳‘ ׳”׳׳׳׳•׳; ׳™׳׳•׳׳™׳׳ ׳׳׳׳™׳ ׳׳‘׳™׳ ׳”׳ ׳™׳—׳•׳׳™׳ ׳׳׳ ׳׳׳™ ׳”׳™׳₪׳ ׳׳ ׳’׳׳™׳”: ׳•׳•׳™׳™׳ ׳׳•׳ ׳™ ׳™׳—׳׳™׳ ׳׳ ׳׳׳—׳׳™ ׳”׳‘׳™׳ ׳”׳׳•׳׳“׳ http://www.haaretz.co.il/hasite/pag...SubContrassID=0 Fri,26 May 2006 17:23 ׳׳•׳ ׳™ ׳׳ ׳”׳—׳׳™׳ ׳׳“׳™׳™׳ ׳׳”׳₪׳׳™׳׳” ׳‘׳׳’׳׳• ׳•׳™׳—׳–׳•׳ ׳׳׳™׳׳•׳ ׳™׳ ׳׳ ׳‘׳׳•׳“ ׳׳׳•׳׳” ׳׳‘׳•׳׳•׳; ׳”׳׳•׳׳ ׳”׳׳׳™׳׳™ ׳ ׳₪׳׳ ׳‘׳׳™׳׳•׳ ׳׳™׳׳•׳ "׳”׳׳׳" ׳׳–׳•׳׳” ׳׳ ׳&iexcl;׳•׳׳‘׳• ׳—׳׳ ׳׳׳ ׳” ׳‘׳׳›׳‘׳™ ׳ ׳׳ ׳™׳” http://www.haaretz.co.il/hasite/pag...SubContrassID=0 Fri,26 May 2006 00:25 ׳׳ ׳&iexcl;׳•׳׳‘׳• ׳׳–׳‘ ׳׳ ׳‘׳™׳"׳ ׳™׳׳•׳׳׳™׳ ׳׳—׳׳™ ׳׳”׳׳‘׳׳ ׳׳• ׳׳׳׳“׳™׳׳&iexcl; ׳׳ ׳‘׳•׳ ׳” ׳׳׳™׳• ׳•׳׳׳׳™׳ ׳׳ ׳”׳”׳׳—׳–׳׳•׳ ׳‘׳׳•׳₪׳&iexcl;׳” ׳׳׳ ׳׳&iexcl;׳ ׳׳׳׳׳

,


« | »

:

:


HTML




GMT +2. 22:26

0.05 12
- Fresh -

vBulletin, 3.0.6
© 2024 - 2000 Jelsoft Enterprises.
Fresh.co.il ©

|