XML Data Management



Slides

The slides of the course are in PDF and cover the following topics:

  1. Usage and Roles of XML  (Slides)
  2. XML Syntax  (Slides)
  3. Document Object Model  (Slides)

    Example program in Java that traverses a DOM tree (adapted from Chris Mair)

  4. Document Type Descriptions  (Slides)
  5. XML Schema  (Slides, updated 21/11/11)
  6. Deterministic Schemas and DTDs  (Slides)
  7. XPath - Overview  (Slides)
  8. XPath - Principles  (Slides)
  9. XQuery  (Slides)
  10. XSLT  (Slides)


Exercises

These are exercises for the lab sessions.
  1. XML Syntax

  2. The DOM Interface in Java

    As a starting point for the exercises, you can use the DOMTest.java example.
    A good text case is the recipes.xml dataset.
    You can see from the DocPrinter.java code how to output XML using the Transformer factory.

  3. Document Type Descriptions
  4. XML Schema (1)
  5. For this exercise, you need the files juicers.dtd and juicers.xml.

  6. XML Schema (2)
  7. For these exercises, you need the files juicers5.xml, juicers6.xml, and juicers7.xml.

  8. XML Schema (3)
  9. For these exercises, you need the files juicers0.xml, juicers0.xsd, juicers8.xml, and juicers9.xml.

  10. XPath (1)
  11. For these exercises, you need the file countries.xml.

  12. XPath (2)
  13. For these exercises, you need the file courses-ID.xml. -
    You may want to compare your solutions with these sample solutions.

  14. XQuery
  15. For these exercises, you need the files recipes.xml, recipes.dtd, countries.xml, and countries.dtd.
    You may want to compare your solutions with these sample solutions.

  16. XSLT Stylesheets (1)
  17. For these exercises, you need again the files recipes.xml, recipes.dtd, countries.xml, and countries.dtd.
    You may want to compare your solutions with these sample solutions.

  18. XSLT Stylesheets (2)
  19. For these exercises, you need the files countries.xml, and countries.dtd.
    You may want to compare your solutions with these sample solutions.


Coursework

Here are the tasks for the coursework
  1. Quick and Dirty XML Diff

    The following papers may help you to build up your intuition:

  2. XPath Queries over Recipes (Sample Solutions)

    Your queries should run over documents satisfying the DTD recipes.dtd, like for instance recipes.xml.
    Submit your solutions in the file recipe-queries.txt.

  3. XQuery Queries over Movies (Sample Solutions)

    Your queries should run over documents satisfying the DTD movies.dtd, like for instance movies.xml.
    Submit your solutions in the file movie-queries.txt.

  4. XSLT Transformations over Movies

    Your queries should run over documents satisfying the DTD movies.dtd, like for instance movies.xml.
    Submit your solutions in the file movie-transformations.txt.



Exam

The exam of 13 September has been marked.



BACK Back to my Previous Teaching page