PHP Classes

Question

Recommend this page to a friend!

      DOMIT! RSS parser  >  All threads  >  Question  >  (Un) Subscribe thread alerts  
Subject:Question
Summary:It's not work in some case.
Messages:2
Author:Kimjuhoon
Date:2006-05-29 15:29:16
Update:2006-05-30 20:44:11
 

  1. Question   Reply   Report abuse  
Picture of Kimjuhoon Kimjuhoon - 2006-05-29 15:29:16
Hi,
DOMIT! RSS didn't make any problem until i met this RSS feed.
openapi.naver.com/sample/kin.xml

The code, i wrote is here:
================================ Code =============================
$url = "http://openapi.naver.com/sample/kin.xml";
$cacheDir = $SystemRoot . "domitCache/";
$cacheTime = 3600;
$rss =& new xml_domit_rss_document($url, $cacheDir, $cacheTime);

function printResult($rss)
{
$nChannels = $rss->getChannelCount();
echo "Channels : " . $nChannels . "<br>";
for ($i = 0; $i < $nChannels ; $i++)
{
$currChannel =& $rss->getChannel($i);
$nItems = $currChannel->getItemCount();
for ($j = 0 ; $j < $nItems ; $j++)
{
$currItem =& $currChannel->getItem($j);
echo "<tr>";
echo " <td colspan='2'><a href='" . $currItem->getLink() . "'><font color='#990000'>" . strip_tags($currItem->getTitle()) . "</font></a></td>";
echo "</tr>";
echo "<tr>";
echo " <td colspan='2' height='5'></td>";
echo "</tr>";
}
}
}
==================================================================
It shows "Channel : 0"


  2. Re: Question   Reply   Report abuse  
Picture of Kimjuhoon Kimjuhoon - 2006-05-30 20:44:11 - In reply to message 1 from Kimjuhoon
Can anybody answer me?