We use an external DTD. We specify the children of a node using a form of BNF.
The following symbols may be used:
, | A comma is used to separate consecutive elements |
---|---|
? | A question mark may come after a term, it is used to allow zero or one occurances |
* | A star after a term means zero or more of an element |
+ | A plus after a term means one or more of an element |
The dtd given is fine for the United Kingdom but it does not suit France or Norway as it should.
Change the dtd so that the xml on the left passes validation and the xml on the right fails validation.