KeyView 23.4

# Customize XML Templates

XML templates are enabled by default. In most cases, the default templates should be sufficient; however, you can customize them or create your own as required.

To customize XML templates for Lotus note extraction

1. Modify the template files in the following directory.

   `install\OS\bin\NSFtemplates`

   The `main.xml` file must exist in the `NSFtemplates` directory. It is the top-level template file that extracts all subfiles, usually by calling other templates.

2. Make sure that any modifications or additional XML files conform to the supported elements and attributes described in Template Elements and Attributes.

3. Extract the Lotus database file.

## Use Demo Templates

For testing purposes, you can extract notes by using a set of demo templates, which are provided to demonstrate the proper usage of all the XML elements and attributes, because the default templates do not use all the XML elements.

The demo templates are available at:

`install\OS\bin\NSFtemplates`

To use the demo XML templates

1. In the `formats.ini` file, set the following parameter.

       [nsfsr]
       UseDemoTemplate=1

2. In the `main.xml` file, uncomment the following section.

       <ifini name="UseDemoTemplate" text="1">
         <call file="demo.xml"/>
         <quit/>
       </ifini>

## Use Old Templates

For testing purposes, you can extract notes by using legacy templates, which produce MHTML output. You can generate similar output by disabling the XML templates, but using the old templates enables you to see the XML code and compare it to the standard and demo templates.

To use the old XML templates

1. In the `formats.ini` file, set the following parameter.

       [nsfsr]
       UseOldTemplate=1

2. In the `main.xml` file, uncomment the following section.

       <ifini name="UseOldTemplate" text="1">
         <call file="default_old.xml">
         <quit>
       </ifini>

## Disable XML Templates

For testing purposes, you can disable XML templates; KeyView extracts the notes in MHTML format. You can compare the MHTML output directly by the NSF reader with the MHTML output indirectly by the NSF reader through the XML templates.

To disable XML templates

1. In the `formats.ini` file, set the following parameter.

       [nsfsr]
       ExtractByTemplate=0

Copyright 1997-2023 Open Text
Version 23.4 | Last updated September 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL KeyView 23.4

Topic Title: Customize XML Templates