I also need the information contained in the channel
<rss version="2.0">
<channel>
<title>CBC | Ticker</title>
<link>http://www.cbc.ca/</link>
<description>CBC.ca News Ticker RSS</description>
<language>en-ca</language>
<copyright>Copyright: (C) Canadian Broadcasting Corporation, http://www.cbc.ca/aboutcbc/discover/copyright.html</copyright>
<item>
<title>APM to buy Summerside's old Holland College building</title>
<link>http://www.cbc.ca/canada/prince-edward-island/story/2008/03/18/summerside-developer.html</link>
<description>A well-known Prince Edward Island developer is set to buy a prime piece of Summerside real estate from the
province, CBC News has learned.</description>
<keywords>summerside holland college building apm group tim banks</keywords>
</item>
I worked hard yesterday but was never able to retrieve the title of the Channel. All I can get are the title of the items.
Here is the link to the Feed I'm trying to parse.
http://rss.cbc.ca/lineup/latest.xml
I also need the information contained in the channel
<rss version="2.0">
<channel>
<title>CBC | Ticker</title>
<link>http://www.cbc.ca/</link>
<description>CBC.ca News Ticker RSS</description>
<language>en-ca</language>
<copyright>Copyright: (C) Canadian Broadcasting Corporation, http://www.cbc.ca/aboutcbc/discover/copyright.html</copyright>
<item>
<title>APM to buy Summerside's old Holland College building</title>
<link>http://www.cbc.ca/canada/prince-edward-island/story/2008/03/18/summerside-developer.html</link>
<description>A well-known Prince Edward Island developer is set to buy a prime piece of Summerside real estate from the
province, CBC News has learned.</description>
<keywords>summerside holland college building apm group tim banks</keywords>
</item>
I tried many ways to do it. The last one was..
$channel = $rss->getValuesByTagName('channel');
echo $channel['title'];
Many Apologies, it would appear sourceforge isn't notifying me of forums posts, anyways the answer is to simply use the query method.
$channel_title = $rss->query('channel/title');
Hope that helps.