Just wondering what the best way is to validate an atom feed. Currently
I do the following
Abdera abdera = new Abdera();
Parser parser = abdera.getParser();
Document<Feed> feed = parser.parse(
new StringReader(response.getEntity().getText()));
but it still seems to create a valid document even if i parse an RSS
document, like the one below
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:georss="http://www.georss.org/georss" xmlns:taxo="http://purl.or
g/rss/1.0/modules/taxonomy/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:media="http://search.yahoo.com/mrss/" xml
ns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:gml="http://www.opengis.net/gml"
version="2.0">
<channel>
<title>SyslogRecord Feed</title>
<link>/syslogs?id=2&fieldUnitAddress=6&first=7&count=1</link>
<description>SyslogRecord Feed</description>
<pubDate>Tue, 11 Sep 2007 13:48:08 GMT</pubDate>
<dc:creator>Observant Ringo Web Application</dc:creator>
<dc:date>2007-09-11T13:48:08Z</dc:date>
</channel>
</rss>
cheers
</jima>