XML content assist provides a comment template, a section of predefined code that you can insert into a file. You may find a template useful when you have a certain piece of code you want to reuse several times, and you do not want to write it out every time.
You can use a default template as provided, customize that template, or create your own templates.
For example, you can 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 create a new XML template, complete the following steps:
If you have a template that you do not want to remove but you no longer want it to appear in the content assist list, clear its check box in the table on the Templates preferences page.