From: rb Date: 2007-01-02T03:05:10+09:00 Subject: Re: XML - converting from one feed to another (beginner) On Sat, 30 Dec 2006 02:40:18 +0900, James Britt wrote: >rb wrote: >> I'm trying to read an XML feed of products and convert them to a >> different XML feed to upload to Froogle (Google Base). [...] >For example, with Hpricot (which you can install as a gem): > >require 'hpricot' > >src_dom = Hpricot(source_rss_xml). > >src_dom/'//item'.each do |el| > title = (item/'title').text > title_url = (item/'title_url').text > # ... > # Now build the new item element for the target XML > # and add it to the accumulating content >end Thanks... it's working so far, but I had to use this syntax: title = (el/'title').text