XML content assist provides a comment template, a chunk of predefined code that you can insert into a file. You can use the default template as provided, customize that template, or create your own templates.
For example, you may work on a group of XML pages that should all contain a table with a specific appearance. Create a template that contains the tags for that table, including the appropriate attributes and attribute values for each tag. (You can copy and paste the tags from a structured text editor into the template's Pattern field.) Then select the name of the template from a content assist proposal list whenever you want to insert your custom table into an XML file.
To add a new XML template, complete the following steps:
You can edit, remove, import, or export a template by using the same Preferences page. If you have modified a default template, you can restore it to its default value. You can also restore a removed template if you have not exited from the workbench since it was removed.
If you have a template that you do not want to remove but you no longer want the template to appear in the content assist list, go to the Templates preferences page and uncheck its check box.