From: Paul Battley Date: 2006-03-27T21:24:19+09:00 Subject: Re: Variables in REXML I think this is the string interpolation you're looking for: root.elements["foo/bar[#{i}]"].text Paul.