Validating atom and rss locally?

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.

thanks,
- rob

···

--
http://www.robsanheim.com
http://www.seekingalpha.com
http://www.ajaxian.com

Hi,

In <fc113d400611292342i7be4c897ia8d7453496a571c6@mail.gmail.com>
  "validating atom and rss locally?" on Thu, 30 Nov 2006 16:42:48 +0900,

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,

···

"Rob Sanheim" <rsanheim@gmail.com> wrote:
--
kou