I think this is the XPath for the elements you want:

//IfcLengthMeasure[@id = 'i1671']

...whether REXML fully supports XPath is another question.  Try it and 
see if it works.

-- 
Posted via http://www.ruby-forum.com/.