<tempfile property="temp.file"/>will set temp.file to the name of a new temporary file.
<tempfile property="temp.file" suffix=".xml"/>will set temp.file to the name of a new temporary file with a suffix of .xml.
<tempfile property="temp.file" destdir="build"/>will set temp.file to the name of a new temporary file located in the build sub-directory.