------ art_3059_26451485.1129919876261 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 10/21/05, daz <dooby / d10.karoo.co.uk> wrote: > > > 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 :)) <blush> > > 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 > > > > > How do I find my current REXML version ? I'm using the default lib installed with one-click 1.8.15 ------ art_3059_26451485.1129919876261--