How to find the given string is a RSS feed or not
问题 I have a string which takes both XML and HTML input from a data downloaded from the given Url. I want to check whether the downloaded string is an rss feed of a html document before parsing through SAXParser. How to find this? For example If I download a data from http://rss.cnn.com/rss/edition.rss the resulting string is a rss feed If I download a data from http://edition.cnn.com/2014/06/19/opinion/iraq-neocons-wearing/index.html the resulting string is a html document. I want to continue my