new option xmldecl to xml_write