The XML Security Library uses templates to describe how and what data should be signed or encrypted. The template is a regular XML file. You can create templates in advance using your favorite XML files editor, load them from a file and use for creating signature or encrypting data. You can also create templates dynamicaly. The XML Security Library provides helper functions to quickly create dynamic templates inside your application.