From: Billy Hsu Date: 2007-04-13T19:50:54+09:00 Subject: Re: Get content in a xml element using hpricot Sorry for deleted your text :( Maybe you can try: puts (t/"dc:subject").text Bonita wrote: > I'm trying to get the content from like this > > doc = Hpricot.parse(File.read("965.xhtml")) > > (doc/"item").each do |t| > > puts (t/"dc:subject").innerTEXT > > end > > but I got > > html internet tutorial web > > while I only need "html internet tutorial web" > > Anyone knows what's the right function to call? > > THanks -- Posted via http://www.ruby-forum.com/.