XML Data Management 2012/13



Slides

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

  1. Usage and Roles of XML  (Slides)

    The following documents contain the examples mentioned on the slides:

  2. XML Syntax  (Slides)
  3. Document Type Descriptions  (Slides)
  4. An example file referencing two DTDs: mathmlInXHTML.xml

  5. Document Object Model  (Slides)

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

  6. XPath - Overview  (Slides)
  7. XPath 1.0 Principles  (Slides)
  8. The following documents contain the examples mentioned on the slides:

  9. XSLT  (Slides)
  10. XQuery  (Slides)
  11. XML Schema  (Slides)
  12. Deterministic Schemas and DTDs  (Slides)
  13. Core XPath  (Slides)


Exercises

These are exercises for the lab sessions:
  1. XML Syntax and DTDs
  2. One of the exercises is to write DTDs for the document recipes-elem.xml and recipes.xml.

  3. Document Navigation with the Java DOM Interface and with XPath (Sample solutions XPath)

    As a starting point for the DOM 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.

  4. For the XPath exercises, you need the file countries.xml.

  5. XPath with Identities and First Steps with XSLT (Sample solutions XPath and XSLT)
  6. For the XPath exercises, you need the file courses-ID.xml.

  7. XSLT Stylesheets (Sample solutions XSLT)
  8. For these exercises, you need the files countries.xml, and countries.dtd.

  9. XQuery (Sample solutions XQuery)
  10. For these exercises, you need the files countries.xml, and countries.dtd.

  11. XML Schema
  12. For these exercises, you need the files juicers.dtd, juicers.xml, juicers5.xml, juicers6.xml, juicers7.xml, juicers0.xml, juicers0.xsd, juicers8.xml, and juicers9.xml,



Coursework

Here are the tasks for the coursework:
  1. XPath Queries over Recipes (Sample Solutions, Discussion)

    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.

  2. Quick and Dirty XML Diff

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

    You may get further inspiration from the website of DeltaXML Ltd.

  3. XSLT Transformations over Movies (Sample Solutions, Discussion)

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

  4. XQuery Queries over Movies (Sample Solutions)

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



Exam

To give you an idea what you will be asked to do in an exam, have a look at the exam of 13 September 2012.
The questions of the exam referred to the three XML files mondial-small.xml, mondial-small.xsd, mondial.xml, and to the text file answers.txt.

The exam of 22 February is now marked.



BACK Back to my Previous Teaching page