Buenas, les comento un problema que estoy teniendo cuando quiero parsear un
rss de clima de yahoo.
si paso el siguiente codigo

require 'rss'
require 'open-uri'

feed=RSS::Parser.parse("http://weather.yahooapis.com/forecastrss?p=USCA1116
")



obtengo el siguiente error, tanto en win32 como en linux

C:\Mis documentos>ruby test.rb
C:8:in `lastBuildDate=': value <Sun, 27 Jul 2008 7:56 pm PDT> of tag
<lastBuildDate> is not available. (RSS::NotAvailableValueError)
        from C:/RUBY/lib/ruby/1.8/rss/parser.rb:393:in `__send__'
        from C:/RUBY/lib/ruby/1.8/rss/parser.rb:393:in
`start_get_text_element'
        from C:/RUBY/lib/ruby/1.8/rss/parser.rb:329:in `call'
        from C:/RUBY/lib/ruby/1.8/rss/parser.rb:329:in `tag_end'
        from C:/RUBY/lib/ruby/1.8/rexml/parsers/streamparser.rb:26:in
`parse'
        from C:/RUBY/lib/ruby/1.8/rexml/document.rb:199:in `parse_stream'
        from C:/RUBY/lib/ruby/1.8/rss/rexmlparser.rb:22:in `_parse'
        from C:/RUBY/lib/ruby/1.8/rss/parser.rb:163:in `parse'
        from C:/RUBY/lib/ruby/1.8/rss/parser.rb:78:in `parse'
        from test.rb:4

estuve buscando algo similar y solo encontré un reporte [1]en el ruby-core
en admitian que se encontraban frente a un bug.

Se han encontrado con algo similar? Saludos

[1] http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/94794
-- 
http://www.rodolinux.com.ar

"I must not fear. Fear is the mind-killer. I will face my fear. I will
permit it to pass over me and through me. And when it has gone past I will
turn the inner eye to see its path. Where the fear has gone there will be
nothing. Only I will remain." - Bene Geserit's Fear Lethany - Dune Trilogy -
Frank Herbert
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a