000522-1 |
Write an XML DTD for storing an ancestor structure for a person. By an ancestor structure is meant the name and birthdate of the person, and the same information recursively for his or her father and mother, grandfathers and grandmoters, etc., to an unlimited depth. The structure should allow stops at different depth in different branches, when som ancestor is not known any further. |
|
Answer, variant 1 |
ancestors.dtd:
ancestors.xml (example, not required):
Note: An advantage with variant 2 over variant 1, might be that it can better cater for cases where the same person is an ancestor in several places. |
|
Answer, Variant 2: |
ancestor-id.dtd:
ancestor-id.xml (example, not required):
|