Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RSS Validation

Status
Not open for further replies.

finishingmove

Programmer
Apr 3, 2007
3
I'm writing a RSS reader in C# and I haven't figured out what would be the best way to validate if the document from the URL is really formated as RSS.

doc.LoadXml(thestuff);

if{
"validation goes here";
}
else{
error message
}
 
Here's a site that lists the structure of a valid RSS. You can use this to create validation rules.

Test for the required fields only (valid fields listing at the top of the webpage).


As long as it parses as XML, and contains all the required RSS fields, then you know it is valid.

[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top