From: Kouhei Sutou Date: 2006-11-30T20:38:44+09:00 Subject: Re: validating atom and rss locally? Hi, In "validating atom and rss locally?" on Thu, 30 Nov 2006 16:42:48 +0900, "Rob Sanheim" wrote: > I was wondering if there are libraries to validate rss 2.0 and atom > locally, for testing purposes? I am aware of FeedValidator gem, but > I'd like to validate w/o having to make a web service call to the > "official" validator to keep the test running fast. There are plenty > of feed parsing libraries, but I'm sure many of them can parse things > that aren't necessarily valid and may not care about validity if the > xml is close enough. Developing version of RSS Parser can validate RSS 2.0 and Atom. The version of RSS Parser is here: http://www.cozmixng.org/repos/rss/trunk I don't put those changes into Ruby's repository yet because Atom support is still unstable and not complete. API of the developing version may be changed. But parsing API will not be changed. require 'rss' begin RSS::Parser.parse(File.read("/.../test.atom"), true, false) puts "OK" rescue RSS::Error puts "#{$!.class}: #{$!.message}" end Thanks, -- kou