From: Gregory Seidman Date: 2008-07-24T21:59:16+09:00 Subject: Re: how to use hpricot in views On Thu, Jul 24, 2008 at 07:25:51PM +0900, Lost Warrior wrote: > how to parse xml file in html.erb > <% > xml = Hpricot.parse(@chunk_of_xml_data) > data = (xml/:uid) %> > <% data.each { |u| %> > <%= u.innerHTML %> > <% } %> This does not belong in the view. Put it either in the controller or the helper. --Greg