From: Peter Fitzgibbons Date: 2005-10-14T23:17:45+09:00 Subject: Re: Unit Testing with REXML questions HI Jeff, xmltest.rb : require 'rexml/document' xmlin = < one two three four EOD xml = REXML::Document.new(xmlin) puts xml.elements['/a/d'].size puts xml.elements['/a/d'] output : 5 three four xml.elements['/a/d'] returns the entire xml tree under/including /a/d I want this to return 1 (the number of "d" elements in the list)