From: James Britt Date: 2006-07-12T08:19:30+09:00 Subject: Re: Merging two REXML element-lists. Erling Jepsen wrote: > Could you supply a bit of code/meta-code to prove your point? > - that would be much appreciated! Assume the XML is in doc1 and doc2, with 2 holding the selected subset. doc2.elements.to_a("//setting").each do |setting| key = setting.attributes['key'] value = setting.attributes['value'] other_el = doc1.elements.to_a("//setting[@key='#{key}]").first other_el.attributes['value'] = value end Or something like that -- James Britt "People want simple stories."