I'm parsing an iTunes feed, there are 3 image sizes within the feed and I'm not sure how to fetch the largest one.
The iTunes Feed example:
<im:image height="53">http://a1.image.53x53-50.jpg</im:image>
<im:image height="75">http://a1.image.75x75-65.jpg</im:image>
<im:image h...
I am trying to parse a XML using SimplePie. SimplePie wouldn't even recognize this as RSS if I didn't turn set force_feed to TRUE.
The error message shown by SimplePie:
This XML document is invalid, likely
due to invalid characters. XML error:
Not well-formed (invalid token) at
line 1, column 1
The first 2 lines of the XML do...
I tried parsing Amazon top seller RSS feed using simplepie PHP library. It doesn't return correct results for it, though it is pretty good for parsing blog feeds.
Is simplepie only for parsing blog feeds?
...
I'm trying to get simplepie to loop through a few rss feeds using codeigniter but I can only get it to display the feed items from the last feed in the array.
I think it is to do with the foreach loop in the _get_feed function but everything I've tried has failed to fix it.
In my controller I have this
class Main extends Controller{
...
My site is completely custom, as such I like to know when I have poorly written code. I use set_exception_handler and set_error_handler to use custom classes to log errors to a file. This includes notices and warnings.
Within my own code, this is fine as I get very few logs and those that I do get are things I actually want to fix.
How...
I'm trying to use SimplePie with Codeigniter but I can't get even the view to display if I try to load the simplepie library. I've downloaded the Haughin CodeIgniter library (http://www.haughin.com/code/simplepie/) and put it in the applications/libraries folder, but nothing works. I have the code below, but it doesn't really matter wh...
I am using SimplePie to parse and display an xml feed on my site. I have two separate rss feeds and I running each one through SimplePie then displaying them in the side bar.
The problem I am having is that each feed contains smart quotes and they are displayed as odd characters in the browser. SimplePie has the encoding set as UTF-8,...
I like SimplePie in PHP, but I'm wondering what the equivalent of it is Perl, Python, or .NET languages. Is there another library as flexible and easy for consuming feeds as SimplePie?
...
Hi
How can a get a object variable from a remote XML file, for example this one ?
In PHP5 it works fine with simplexml_load_file(), but I need this to work in PHP 4 also. How can I do that?
Or is there any built-in WordPress function that can load xml files? I tried using the WP's SimplePie class, but I get a weird object variable (wit...
How can I force a refresh when the rss file has been updated? It appears to be caching no matter what...
The feed is located in a WordPress dashboard widget using the simplepie fetch_feed() method...
/* Dashboard Widget */
function my_dashboard_widget_function() {
$rss = fetch_feed( "http://mysite.com/feed.rss" );
if ( is_wp...
I am combining two feeds, with enclosures, and items that don't have enclosures are showing up with empty enclosures.
Here's the code with the offending bit in bold:
<item>
<title><?echo $item->get_title(); ?></title>
<guid><? echo $item->get_permalink(); ?></guid>
<link><? echo $item->get_permalink(); ?></link>
**<? if ($enclosure = $...