From: "Florian Aßmann" Date: 2007-07-16T18:09:36+09:00 Subject: Re: Tempfile : delete problem Hi Ronald, clarification: accessing a path of an IO can be done through Tempfile#path, it's standard for File... require 'tempfile' Tempfile.open('') { |tempfile| puts tempfile.path } and since tempfile is per default deleted when the object becomes finalized it fails because the path is invalid after you renamed the file. Why do you need the .xml suffix? Regards Florian