The RssValidateFeed method can be used to check that a news
feed exists and is properly formatted. If the contents of the feed
are valid, the method will return the number of items in the feed and
the date that it was last modified. This can be useful for
applications that want to periodically check a news feed and
determine if the contents have changed.
The SYSTEMTIME structure that is populated by the method
specifies the date when the feed was last modified. The method first
checks the value of the lastBuildDate property of the feed channel.
If that property is not defined, then it will use the value of the
pubDate property. If neither are defined, then the structure members
will have a value of zero.
The validation process imposes strict checks on the structure of
the news feed and requires that it conform to the RSS specification.
For example, the feed must have a title, link and description. Each
item in the feed must have either a title or description, and the
hyperlinks specified in the feed must be valid. If the feed XML is
malformed, or a required property of the feed is invalid or missing,
this method will fail.
If a news feed cannot be validated, it still may be possible to
open the feed using the OpenFeed method. By default, relaxed
rules are used when parsing the contents of the feed and it does not
check to ensure all required properties are defined and have valid
values.