From: daz Date: 2005-10-22T01:36:59+09:00 Subject: Re: REXML::XPath results out of sort order ? Peter Fitzgibbons wrote: > > You have to File.open the file... Document.new doesn't know how to open >the stream.. only how to read it. > > please try : > > xml = REXML::Document.new(File.open('D:\ruby\DfB\TEMP\clruby\___test.xml') ) Gosh, that makes *such* a difference :)) I would have known that if I was doing it myself. Version 3.1.3 gives the correct result: p mi[0].elements['MsMilestoneId'].text #-> "10" daz