Hpricot is not parsing the MLB xml file. I'm thinking the reason that it 
is not reading the MLB xml file is because it is not in a standard XML 
format.

If you give my code a quick try, you'll notice that it will read other 
XML files, but not the MLB XML.

#This works and outputs the proper xml data
@url1 = 'http://www.sportingnews.com/stories/sportingnews/MLB/rss.xml'
@page1 = Hpricot(open(@url1))
<%= @page1 %>

#This does not work, and I'm scratching my head
@url1 =
'http://gd2.mlb.com/components/game/mlb/year_2010/month_03/day_06/gid_2010_03_06_anamlb_oakmlb_1/boxscore.xml'
@page1 = Hpricot(open(@url1))
<%= @page1 %>


Hassan Schroeder wrote:
> On Sun, Mar 7, 2010 at 4:10 AM, Allan Last <li...@ruby-forum.com> wrote:
> 
>> #This does not work, and I'm scratching my head
> 
> And I'm scratching mine trying to guess what you mean by "does not
> work" ...
> 
> --
> Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
> twitter: @hassan

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to