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.
To create a new XML template, complete the following steps:
1) Click Window > Preferences and select XML > XML Files > Templates.
2)Click New if you want to create a completely new template.
3)Supply a new template Name and Description.
4)Specify the Context for the template. This is the context in which the template is available in the proposal list when content assist is requested.
5) Specify the Pattern for your template using the appropriate tags, attributes, or attribute values to be inserted by content assist.
6) If you want to insert a variable, click the Insert Variable button and select the variable to be inserted. For example, the date variable indicates the current date will be inserted.
7)Click OK and then Apply to save your changes.
RohiK, if this helps please login to Mark As Answer. | Alert Moderator