Any idea how to parse this XML? -A
Allan Last wrote: > Hello, > > I've been trying for hours to parse an XML using Hpricot. Usually it's > not a problem. Here's my simple code: > > #This works and outputs the proper xml data > @url1 = 'http://www.sportingnews.com/stories/sportingnews/MLB/rss.xml' > @page1 = Hpricot(open(@url1)) > <%= @page 1 %> > > #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)) > <%= @page 1 %> > > > The gd2.mlb.com XML file does not have any style information according > to Firefox. I can read it using Oxygen. Can somebody provide me with a > hint on how to parse the mlb.com XML? Thanks! > > -A -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

