Selam
Bir XML dosyasını aşağıdaki methodla parse etmeyi denedim ama olmadı. Kafam davul gibi. düşünemiyorum artık hata gören varsa lütfen söylesin. veya başka bir çıkar yol önerisi olan.
$feed="http://www.ersinacar.com/video.xml";
$ch = curl_init();
$timeout = 0;
curl_setopt ($ch, CURLOPT_URL, $feed);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$xml = curl_exec($ch);
curl_close($ch);
//echo $xml;
preg_match_all("/<video videoId=\"(.*?)\" permalinkId=\"(.*?)\" extension=\"(.*?)\" length=\"(.*?)\" size=\"(.*?)\" fileHash=\"(.*?)\" tags=\"(.*?)\" previewHash=\"(.*?)\" previewHashLow=\"(.*?)\" highResImage=\"(.*?)\" medResImage=\"(.*?)\" username=\"(.*?)\" writerName=\"(.*?)\" directorName=\"(.*?)\" producerName=\"(.*?)\" castName=\"(.*?)\" studio=\"(.*?)\" screenFormat=\"(.*?)\" copyRightOwner=\"(.*?)\" releaseDate=\"(.*?)\" views=\"(.*?)\" rating=\"(.*?)\" numRatingVotes=\"(.*?)\" numDownloads=\"(.*?)\" numViews=\"(.*?)\" description=\"(.*?)\" title=\"(.*?)\" dateAdded=\"(.*?)\" age=\"(.*?)\" primaryCollectionPermalink=\"(.*?)\" primaryCollectionTitle=\"(.*?)\" primaryCollectionThumb=\"(.*?)\" allowEmbedding=\"(.*?)\" premium=\"(.*?)\" contentRatingId=\"(.*?)\" category=\"(.*?)\" numOfComments=\"(.*?)\">/i",$xml,$out,PREG_SET_ORDER);
print_r($out);Kolay gelsin.