Naming Method
You can specify the following naming methods in the map file for your objects:
- Element
Specify this option if you want text contained within the element’s tags to be the object name. The element must be a child of the element being defined.
- Attribute
Specify this option if you want the text contained within the element’s attribute tag to be the object name.
- Element Name
Specify this option if you want the element (tag) name to be the object name.
If you specify that Attribute be used as the Naming Method for an element, it is advised that your DTD specify that the attribute be #REQUIRED or #FIXED for these elements. While this does not force the user to enter an attribute value that can be used to name the object, it will at least prompt the user to enter a value.
If Attribute is the naming method and it is not specified, when you select the option to scan for new objects or when you save the document, you are prompted to name the object; note that no default name is provided. Specify the name then click OK in the User Info Needed dialog box.