state machine xml model and schema