Use FeedValidator, to check the validity of a feed. FeedValidator
is available here:
http://feedvalidator.org
- Valid ATOM feeds are processed by Abdera.
- RSS processing is still being introduced into Abdera, therefore
some valid RSS feeds may still not be processed by Abdera
In addition, also use curl to check if the feeds are being served
correctly. curl can be obtained from:
http://curl.haxx.se/download.html
Try this curl -X GET
http://news.google.com/?output=atom
Have also created a sample Java program to determine if a feed
can be processed.
import java.io.InputStream;
import java.net.URL;
import org.apache.abdera.Abdera;
import org.apache.abdera.model.Document;
import org.apache.abdera.model.Feed;
import org.apache.abdera.parser.Parser;
public class TestFeed {
public static void main(String[] args) throws Exception {
Parser parser = Abdera.getNewParser();
InputStream input;
try {
input = new URL(args[0]).openStream();
Document doc = (Document) parser.parse(input);
Feed feed = (Feed) doc.getRoot();
System.out.println("Feed can be parsed");
System.out.println("Begin feed content -----");
feed.writeTo(System.out);
System.out.println("-------End feed content");
} catch (Exception e) {
e.printStackTrace();
}
}
}
Thanks
IBM Moderator
Edited by: lbradley_admin on {1}