How to convert an xml template for the power mail unit

From Wiki

Jump to: navigation, search


Power mail units are semiautomatically converted by the Web project import feature. If fact, if your project contains power mail units using xml templates, these are automatically converted into the new template format, which is a .mt file. In order to complete the conversion of the unit you have to manually add to the mail unit the placeholders listed in the template.

If your project folder contains other xml templates, which are not used in the project but you think that they can be useful in the future, you have to manually convert them in the new format. Here is a simple guideline to perform this operation.

  1. Create a new file with the .mt extension in the Web project under the directory "/WebContent/WEB-INF/descr"
  2. Copy all the content from the original xml file
  3. Delete the <?xml version="1.0" encoding="utf-8" ?> line at the beginning of the file
  4. Delete all the <mail>, <mail-subject>, <mail-body> tags
  5. Replace all the <WRTEXT name='placeholder'/> and the <WRFRAGMENT name='placeholder'/> with the code $$placeholder$$

Here is an example of conversion. On the left there is the old xml template, and on the right the new .mt template


Related articles:
Category Difficulty Refers
Adding the Start Tomcat plugin Customizing the Environment Beginner WebRatio
CVS Common Problems Team Work Intermediate WebRatio
CVS Compare Overview Team Work Intermediate WebRatio
Can I download new plugins for Eclipse from WebRatio?How? Customizing the Environment Beginner WebRatio
How can I increase memory in WebRatio? Customizing the Environment Beginner WebRatio
… further results












Personal tools