Google Answers Logo
View Question
Q: Classifying text as RSS, Atom, or neither ( No Answer,   0 Comments )
Subject: Classifying text as RSS, Atom, or neither
Category: Computers > Programming
Asked by: varactor-ga
List Price: $5.00
Posted: 21 Sep 2006 22:05 PDT
Expires: 22 Sep 2006 14:03 PDT
Question ID: 767496
I need to easily identify a text document as an RSS feed of any type
(0.9, 1.0, 1.1, 2.0 are all ok), an Atom feed of any type or neither. 
I need to do so using the first 100 characters or so of the potential
RSS/Atom feed.  I am not asking for an RSS/Atom parser.

Answer needs to include:
RSS feeds start with any of the following text:  string_a, string_b, string_c, etc
Atom feeds start with any of the following text: string_d, string_e, string_f, etc

I am fairly competent with Regex and string manipulation, so I can can
code this method/script myself.  I just need to know what to look for!
There is no answer at this time.

There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy