Forum Moderators: open
[export.cnet.com...]
You will see the top few lines of the feed are:
<title>CNET News.com</title>
<link>http://news.com.com/</link>
<description>
Tech news and business reports by CNET News.com. Focused on information technology, core topics include computers, hardware, software, networking, and Internet media.
</description>
These are not <item> tags -- this is the top part of the CNET News RSS.
I want to parse this information and insert it into a database so how would I put each <tag> into its own variable $sitetitle, $sitelink, $sitedescription?
I imagine
foreach ($rss->items as $item ) {
doesn't work since these aren't items, how would one do it?