Update xml_pretty_write_to_file