Internet Explorer cannot display this feed

XML is the format mostly used, together with JSON, to give access to data without giving access directly to a database. Most of the browsers are XML compatible, but IE, in some versions (any one older than IE 8.0.76) cannot display a XML feed even if this one has passed the W3C XML validation.

I have faced this problem when dealing with an API. A couple of methods where giving the famous error: “Internet Explorer cannot display this feed”. After a lot of searching on the net with no success I finally decided to use the oldest of the scientific methods to figure this out: test and error.

After a bunch of tests I finally have found out why it was breaking: If the XML has any CDATA tag inside, it will not render in IE.

Workarounds:

  • Install newest version of IE (that might not be available on all versions of Windows)
  • Remove CDATA and html encode (php htmlentities) any field that has CDATA

These are the workarounds and solutions for a well constructed feed, so, before checking those, make sure that your XML pass the W3C validation.

Have fun!

 

Advertisements

About mcloide

Making things simpler, just check: http://www.mcloide.com View all posts by mcloide

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: