You can use element declarations in DTDs to define the elements that may occur in an XML document. Element declarations can specify that an element can contain other elements, that it can contain anything at all, or that it must be empty.
The following instructions were written for the Resource perspective, but they will also work in many other perspectives.
Creating elements
To create an element, follow these steps:
Note: If you intend to have mixed content, the value of the first element in your group must be (#PCDATA) (consequently, if you select Mixed Content, two child elements will automatically be created, the first one having a value of (#PCDATA)). As well, a group should not contain an EMPTY or ANY element. EMPTY or ANY elements are not legally allowed as nested entities.
Related tasks
Creating attributes and attribute lists
Editing an element's content model
Editing a group node
Deleting elements, attributes, entities, notations, and comments
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.