to the main page... about these slides...

Recovering ordinary relations

A standard relation with schema (name,age,email) can be represented as an XML document:
  <relation>
    <tuple>
      <name>John Doe</name>
      <age>38</age>
      <email>john.doe@widget.com</email>
    </tuple>
    <tuple>
      <name>Joe Blow</name>
      <age>42</age>
      <email>joe.blow@gadget.com</email>
    </tuple>
  </relation>

Fun exercise: express relational algebra in XML-QL through this encoding.