KeyView 24.1

# xmlini

The `xmlini` sample program is used in conjunction with template files to produce well-formed XML documents. For more information, see Explore Conversion Options with the Sample Programs. Sample template files are in the `programs\ini` directory. This program runs on both Windows and UNIX platforms.

To run `xmlini`, type the following at the command line:

    xmlini [options] inifile inputfile outputfile

where:

`options` is one or more of the options listed in Options for xmlini.

`inifile` is the full path and file name of a template file.

`inputfile` is the full path and file name of the source document.

`outputfile` is the full path and file name of the first XML output file.

The following options are available.

Options for xmlini

Option | Description
--- | ---
`-s` `stylesheetfile` | Reads style sheet information from an existing style sheet file, or writes the information to an external CSS file. See Use Style Sheets with xmlini.
`-x` `xmlconfig_filename` | Converts an XML file by using customized element extraction settings defined in the `kvxconfig.ini` file. If you do not enter the full path to the template file, the program looks for the file in the current working directory (`install\OS\bin`, where `install` is the path name of the Export installation directory and `OS` is the name of the operating system). See Convert XML Files.
`-rm` | If you set this flag, text and graphics that were deleted from a document with a revision tracking feature enabled are converted, and revision tracking information is included in the XML output. See Convert Revision Tracking Information.
`-oop` | Runs the conversion out of process.
`-fl` | Prints a list of converted files in the console.

If the XML file is output to a directory other than the directory `programs\tempout`, you must update the XML markup so that, the browser can find images used by the template (such as backgrounds or corporate logos) and the style sheet. The markup contains relative references to the image files (`..\images`).

## Use Style Sheets with xmlini

The `xmlini` sample program provides an option that allows XML Export to read Cascading Style Sheet (CSS) or Extensible Style Sheet Language (XSL) style sheet information from an existing style sheet file, or to write CSS information to an external CSS file. If the CSS does not exist, it is created. The style sheet name is referenced in the output XML, for example:

    <?xml-stylesheet href="c:\mystyle.css" type="text/css"?>

This type of conversion makes the XML output document significantly smaller and enables you to use the same style sheet for many conversions.

To apply an existing style sheet to a conversion by using the `xmlini` sample program

1. In the template file, set `eStyleSheetType` to either `XML_CSS` or `XML_XSL`. This specifies that the formatting data is stored in either a CSS or XSL style sheet.
2. At the command prompt, type:

    xmlini -s stylesheetname inifile inputfile outputfile

where `stylesheetname` is the path and file name of the CSS or XSL file.

Copyright 1997-2023 Open Text
Version 24.1 | Last updated December 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 MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL KeyView 24.1

Topic Title: xmlini