> 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.

Thank you, this makes things clear now.

> Why do you need the .xml suffix?

Because I have an application which accepts a basename for a file,
and implicitly assumes its extension .xml.

Ronald