update ast xml for statement