A Gentle Introduction to
Specifying child nodes
Rules to be enforced
- Every country must have a name as the first node.
- Every country must have a capital city as the following node.
- A country may have a king.
- A country may have a queen.
sequence can contain elements.
element node may have
The xsd given is fine for the United Kingdom and Norway
but it does not suit France.
Change the dtd so that the xml on the left passes validation and
the xml on the right fails validation.
Names, Capitals, Kings and Queens