<?xml version="1.0" encoding="UTF-8"?><scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" datamodel="null" version="1.0" exmode="lax" initial="s01">

<!-- since exmode=lax, the processor should ignore all datamodel elements and complete without an error -->
<datamodel>
  <data id="Var1" expr="1"/>
  </datamodel>
     
<state id="s0">
   <onentry>
     <assign location="foo" expr="2"/>
     <script>
       x = y
       </script>
     <foreach array="baz" item="bat">
       <log expr="this is a mistake"/>
       </foreach>
     </onentry>
    
   <state id="s01" initial="s01final">
       <final id="s01final">
        <donedata>
       <param name="result" expr="foo"/>
       </donedata>
       </final>   
   </state>
   
   <transition cond="Var1==1" target="fail"/>
   <transition event="error" target="fail"/>   
   <transition event="done" target="s1"/>
 </state>

<state id="s1"> 
  <onentry>
   <raise event="noerror"/>
   </onentry>
     <transition event="error" target="fail"/>
     <transition event="noerror" target="pass"/>
 </state>
    
<final id="pass"><onentry><log label="Outcome" expr="'pass'"/></onentry></final>
<final id="fail"><onentry><log label="Outcome" expr="'fail'"/></onentry></final>

   
</scxml>