I want my users to be able to view RSS feeds of their choice on my site.
But i’d like to be able to check the files they are submitting as feeds
are actually XML before attempting to parse and display them.
I’ve been using feed tools to display the contents of feeds which works
perfectly, but i’d like some way to check if a file is a feed/xml.
Any pointers in trhe right direction welcome.
(I was thinking about opening the remote file, reading the first x bytes
and testing for the xml declaration)