write single state to xml