CAMPEGGIO CAMPING GRADO CAMPEGGIO GRADO CAMPING FRIULI KAMPIEREN GRADO CAMPING FRIULI ITALY CAMPING TENUTA CAMPING ITALY VACANZE IN FRIULI

CAMPEGGIO

CAMPEGGIO
CAMPING GRADO
CAMPEGGIO GRADO
CAMPING FRIULI
KAMPIEREN GRADO
CAMPING FRIULI ITALY
CAMPING TENUTA
CAMPING ITALY
VACANZE IN FRIULI
%s
', trim($link),trim($title)); printf('%s

'."\n",trim($description)); $title = ''; $description = ''; $link = ''; $insideitem = false; } } function characterData($parser, $data) { global $insideitem, $tag, $title, $description, $link; if ($insideitem) { switch ($tag) { case 'TITLE': $title .= $data; break; case 'DESCRIPTION': $description .= $data; break; case 'LINK': $link .= $data; break; } } } $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, 'startElement', 'endElement'); xml_set_character_data_handler($xml_parser, "characterData"); $fp = fopen('http://www.ansa.it/main/notizie/awnplus/internet/synd/ansait_awnplus_internet_medsynd_Today_Idx.xml','r') or die('Error reading RSS data.'); while ($data = fread($fp, 4096)) { xml_parse($xml_parser, $data, feof($fp)) or die(sprintf('XML error: %s at line %d', xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); } fclose($fp); xml_parser_free($xml_parser); $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, 'startElement', 'endElement'); xml_set_character_data_handler($xml_parser, "characterData"); $fp = fopen('http://www.mioserver.com/links_xml.xml','r') or die('Error reading RSS data.'); while ($data = fread($fp, 4096)) { xml_parse($xml_parser, $data, feof($fp)) or die(sprintf('XML error: %s at line %d', xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); } fclose($fp); xml_parser_free($xml_parser); ?>