XML Data Management 2013/14



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)


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

    For the XPath exercises, you need the file courses-ID.xml.

  6. XSLT Stylesheets (Sample solutions XSLT)

    For these exercises, you need the files countries.xml, and countries.dtd.

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

  9. XML Schema
  10. 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. A DTD for a Student List (Sample Solution)

  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. 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.


  4. 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.

  5. 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.


BACK Back to my Teaching page