From: CD Baby Date: 2004-07-19T00:32:55+09:00 Subject: Re: REXML : add text to element without temp variable? Thanks everyone for your help. You're right, this works great: doc2 = REXML::Document.new music = doc2.add_element 'music' music.add_element('artist').text = 'Pink Floyd' music.add_element('album').text = 'Dark Side of the Moon' Not sure why it wasn't working last night, except maybe I needed some sleep. :-)