The following questions test your understanding of the XML Schema language. They are taken from pages 185-7 of Møller and Schwartzbach (2006). If you would like feedback on your answers, e-mail your answers to David Meredith at <dave@titanmusic.com>.
point
must consist of elements with the following names: address
, latitude
, longitude
and note
. In every such content sequence, the element names address
, latitude
and longitude
may occur zero or once; latitude
may appear only if longitude
appears; either address
or latitude
must appear, but never both; and there may be any number of note
elements anywhere in the sequence. Using XML Schema, formalize the foregoing description of point
elements.