Get XML feed data

$file = "http://xml.altinkaynak.com/doviz.xml";

function startElement($parser, $name, $attrs)
{
global $ShwText;
if($name == 'DOVIZ') $ShwText .= "";
}

function endElement($parser, $name)
{
global $ShwText;
if($name == 'DOVIZ') $ShwText .= "";
}

function characterData($parser, $data)
{
global $ShwText;
if($data != '') $ShwText .= "".$data."";
}

$ShwText = "";

$xml_parser = xml_parser_create();
xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true);
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
if (!($fp = fopen($file, "r")))
{
die("AltınKaynak XML yüklenemedi. ");
$ShwText = "";
}

while ($data = fread($fp, 4096)) {
if (!xml_parse($xml_parser, $data, feof($fp))) {
die(sprintf("XML Yüklenme hatası : %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);
if( $ShwText != '') $ShwText .= "
";
echo $ShwText;

POPULAR POSTS ::

Add multiple upload box

String Separation

Only number restrictions

Addslashes

Add and Separate more records by comma operator

The top Web development PHP frameworks

HTML Document structure and it's Syntax format