Yorum Yok ↓
Simple xml kütüphanesi olmadan önce xml leri parsellemek çok zordu. simplexml kütüphanesi ile çok rahatladı örnek xml okuması. Başka örnektede yazma işlemi için örnek yapacagım. Çok güzel ve basit bir örnek
<?php
header('Content-Type: text/html; charset=utf-8');
$xml = simplexml_load_file('http://www.haberturk.com/rss');
foreach($xml->channel->item as $item)
{
echo "<img border=0 src=".$item->image.">";
$title = iconv('UTF-8', 'ISO-8859-9', $item->title);
$title = iconv('UTF-8', 'ISO-8859-9', $item->description);
echo $title.' - '.$description.'<br>';
}
?>
Kaynak:
Simplexml kütüphanesi kullanımı
