writing simpel state out to xml