[PATCH v3 4/9] pool-wizard: Add _write_to_file method, rework _create_xml method