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