in reply to xml join
Can you rely on the final </Documents> being on a line of its own? If so, read all files line by line and omit the last line (apart from the last file).