Changed output file to full xml document