Save xml to file.