Hi, i'm currently in the process of trying to write a _javascript RSS feed reader using the XMLHTTP and XMLDOM objects.
It pretty simple stuff really but i'm having problems with the ATS feeds.
Using the XMLHTTP object you can make a request for the ATS RSS feeds.
Once you’ve made the request the xml file is return in plain text, not very useful when you want to read through it. So you use the
XMLHTTP.responseXML method that contains a XML Dom for the file.
Unfortunately when i retrieve any ATS feed the responseXML bit is always empty, it's as if it's not seeing the feed as a real xml document and
therefore not creating the DOM. In my experience it’s usually because the mime type of the page is set to text/html and not text/xml.
However all the ATS feeds I’ve tried are set to text/xml so there shouldn’t be any problems there.
I did some testing and it seems to work fine with most other rss feeds just not any at ATS.
I knock up a quick page to show the problem. Unfortunately it'll only work in IE at the moment as both IE and Mozilla implemented the XML Dom
differently and it would require a bit of extra coding to get them to play together.
Also you may need to add the site to your trusted sites to get it to work correctly. If you don’t do this you may receive an "Access Denied"
error.
Here’s the link
www.fearisthemindkiller.co.uk...
You can see how the page works by just viewing the source.
Basically click on of the urls, then click the "Get RSS feed" button. The page will then refresh and write the rss feed to the screen, you'll then
get an alert pop up telling if the responseXML returned a valid DOM or not. If it did it'll tell you the first element name, RSS in this case.
You'll notice that none of the ATS feeds return a valid DOM. I've compared the raw XML and there doesn't seem to be any significant differences, so
I’m at a bit of a loss.
I thought I’d see if any one else has had this problem with rss feeds before.
Not holding out much hope but I thought I’d ask just in case
[edit on 20-10-2005 by Burgess]