<?xml version="1.0" encoding="UTF-8"?>
<question type="CHECK" inlinefeedback="0">
<text>
  <p>A multiple-answer question with more than one correct set of options.</p>
  <p>What do you need to make Tea? More than one combination of options is correct.</p>
</text>
<prompt>Pick one or more</prompt>

  <hint mintries="1">
    This is the first hint, it comes up after the first incorrect answer.
  </hint>
  <hint mintries="2" maxtries="3">
    This is the second hint, it comes up after the second and third incorrect
    answer and disappears again at the fourth.
  </hint>
  <hint mintries="3">
    You can have as many hints as you like.
  </hint>

  <correct>
    Well done. This feedback appears when the quetsion is answered correctly.
  </correct>

  <option identifier="a">
      <choice>Water</choice>
  </option>

  <option identifier="b">
      <choice>Loose Tea leaves</choice>
  </option>

  <option identifier="c">
      <choice>A tea egg</choice>
  </option>

  <option identifier="d">
      <choice>A pre filled teabag</choice>
  </option>

  <option identifier="e">
      <choice>A kettle</choice>
  </option>

  <option identifier="f">
      <choice>A stove</choice>
  </option>

  <option identifier="g">
      <choice>A mug</choice>
  </option>

  <option identifier="h">
      <choice>A microwave oven</choice>
  </option>

  <mapping correct="1">
      <or>
          <and><match pattern="b" /><match pattern="c" /><match pattern="^[^d]*$" /></and>
          <and><match pattern="^[^bc]*$" /><match pattern="d" /></and>
      </or>
      <match pattern="a" />
      <match pattern="g" />
      <or>
          <and><match pattern="e" /><match pattern="f" /><match pattern="^[^h]*$" /></and>
          <and><match pattern="^[^ef]*$" /><match pattern="h" /></and>
      </or>
      <feedback>That's right! That is one of the ways to make tea, but there are more ways than one.</feedback>
  </mapping>

  <mapping correct="0" stop="1">
      <match pattern="^[^a]+$" />
      <feedback>Making tea without water?</feedback>
  </mapping>

  <mapping correct="0">
      <not><or>
          <and><match pattern="b" /><match pattern="c" /><match pattern="^[^d]*$" /></and>
          <and><match pattern="^[^bc]*$" /><match pattern="d" /></and>
      </or></not>
      <feedback>You need some form of tea, but you don't want loose tea leaves directly in your mug...</feedback>
  </mapping>

  <mapping correct="0" stop="1">
      <and><match pattern="f" /><match pattern="h" /></and>
      <feedback>You only need one way to heat water.</feedback>
  </mapping>

  <mapping correct="0" stop="1">
      <and><match pattern="e" /><match pattern="h" /></and>
      <feedback>You can't put a kettle in a microwave oven, why do you need both?</feedback>
  </mapping>

  <mapping correct="0" stop="1">
      <not><or>
          <and><match pattern="e" /><match pattern="f" /><match pattern="^[^h]*$" /></and>
          <and><match pattern="^[^ef]*$" /><match pattern="h" /></and>
      </or></not>
      <feedback>You need some way to heat your water.</feedback>
  </mapping>

  <mapping correct="0">
      <match pattern="^[^g]+$" />
      <feedback>You need something to drink your tea from.</feedback>
  </mapping>

</question>