Move xml_writer to libutils