<?xml version='1.0'?>

<!-- Decision Tree Version 1 -->

<!DOCTYPE tree [
<!ELEMENT tree (decision,diagram?,choice,choice+)>
<!ELEMENT decision (#PCDATA)>
<!ELEMENT diagram (#PCDATA)>
<!ELEMENT choice (label,(payoff|event))>
<!ELEMENT label (#PCDATA)>
<!ELEMENT payoff (#PCDATA)>
<!ELEMENT event (chance,chance+)>
<!ELEMENT chance (probability?,payoff)>
<!ATTLIST chance label CDATA #IMPLIED>
<!ELEMENT probability (#PCDATA)>
]>

<tree>
  <decision>Where to park?</decision>
  <diagram>https://tinyurl.com/yvexk7sh</diagram>
  <choice>
    <label>park in street</label>
    <event>
      <chance label = "get ticket">
        <probability>0.5</probability>
        <payoff>-50</payoff>
      </chance>
      <chance label = "no ticket">
        <payoff>0</payoff>
      </chance>
    </event>
  </choice>
  <choice>
    <label>park in garage</label>
    <payoff>-35</payoff>
  </choice>
</tree>
