CIS336/CIS219/CIS221/IT226
Web design, implementation and management
Exercises to be completed in Workshop 2
(From Møller and Schwartzbach, 2006, pp.56 - 57)
For help, see the lecture notes for Lecture 2, which are available
here.
-
Design an XML language to represent driving directions. For an example of a set of driving directions, see http://www.brics.dk/ixwt/exercises/driving.txt. There are many different possible correct solutions. Try to make yours a fine-grained model. Convert http://www.brics.dk/ixwt/exercises/driving.txt to fit into your new XML language.
-
Write the textual representation of the XML tree shown at http://www.brics.dk/ixwt/exercises/tree2.gif.
-
Add the ravioli recipe, available here to the recipe collection XML file, which you can find here. Make sure the result is well-formed.
-
Consider the document http://www.brics.dk/ixwt/exercises/namespaces.xml.
- Which namespaces do the elements foo, bar and baz belong to?
- Which namespaces do the attributes qux, quux and corge belong to?