From: Marc Hoeppner Date: 2008-01-11T21:17:23+09:00 Subject: Re: Rexml and some rather basic problems Thanks for the link! What I did, after some sweat and tears and so on is the following: After storing all instances of the element in an array (Element.elements.each) I created a new document via Document.new and used a string as input that I created from the array. Like so: Element.elements.each('//entry') do |solution| eachentry = Document.new solution.to_s eachentry.elements.each('feature1') {|somemethod| print somemethod.text} ... end Probably far from elegant, but it actually does what I need. Concerning why I need this in one go is because I am creating some additional information from the actual entries which, among other things, use a counter that has to be resetted for each entry (1, 2, 3 and so on). Anyhow, thanks again! /Marc -- Posted via http://www.ruby-forum.com/.