Support xml save in file