0

hi!

i want to view an rss file using php..

i found this site:
http://www.softarea51.com/tutorials/parse_rss_with_php.html

here's the code:

<?php
	$doc = new DOMDocument();
	$doc->load('http://www.softarea51.com/rss/windows/Web_Development/XML_CSS_Utilities.xml');
	$arrFeeds = array();
	foreach ($doc->getElementsByTagName('item') as $node) {
		$itemRSS = array ( 
			'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
			'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
			'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
			'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue
			);
		array_push($arrFeeds, $itemRSS);
	}
?>

i want to view only the TITLEs of each item in the RSS Feed.

like this:

TITLE1
TITLE2
TITLE3
TITLE4
...
TITLEn

the problem is..

i dont know how to use that php code.

i need that for my software.. ( vb.net ) .

please help :)

thanks!

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by sourcebits
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.