Create xml_writer