[med-svn] r496 - trunk/community/website/inc

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Tue Oct 2 11:20:01 UTC 2007


Author: hanska-guest
Date: 2007-10-02 11:20:01 +0000 (Tue, 02 Oct 2007)
New Revision: 496

Modified:
   trunk/community/website/inc/rss.php
Log:
still debugging


Modified: trunk/community/website/inc/rss.php
===================================================================
--- trunk/community/website/inc/rss.php	2007-10-02 11:16:54 UTC (rev 495)
+++ trunk/community/website/inc/rss.php	2007-10-02 11:20:01 UTC (rev 496)
@@ -4,10 +4,10 @@
 	$xmlDoc = new DOMDocument();
 	$xmlDoc->load($xml);
 	
-	echo $xmlDoc;
+	echo $xmlDoc->saveXML();
 	
 	// get elements from <channel>
-	$channel = $xmlDoc->getElementsByTagName('channel')->item(0);
+	$channel = $xmlDoc->getElementsByTagName("channel")->item(0);
 	$channel_title = $channel->getElementsByTagName("title")->item(0)->childNodes->item(0)->nodeValue;
 	$channel_link = $channel->getElementsByTagName("link")->item(0)->childNodes->item(0)->nodeValue;
 	$channel_desc = $channel->getElementsByTagName("description")->item(0)->childNodes->item(0)->nodeValue;




More information about the debian-med-commit mailing list