File Content Extraction 25.3
XML Export SDK Java Programming Guide

# XmlParseIt

This program demonstrates the use of the `XmlExportReader` class (see Use Methods in the XmlExportReader Class) to convert an input file, and sends out SAX events based on the generated XML, and a template file. See Explore Conversion Options with the Sample Programs for more information on template files.

## Run XmlParseIt on Windows

To run XmlParseIt on Windows

1. In the file `XmlParseIt.bat`, set the following variables.

   `INSTALL_DIR` | The absolute path of the File Content Extraction Export SDK installation directory.
   `PLATFORM` | The platform name.

2. In `XmlSampleConfig.txt`, specify the following values, one on each line.

   Line | Value
   --- | ---
   1 | The path to the template file to use in the conversion. You can use the template files in the directory `install\xmlexport\programs\ini`, where `install` is the Export SDK installation directory.
   2 | The path to the Export SDK `bin` directory.
   3 | The absolute URL pointing to the directory in which the file `Verity.dtd` is located. You must include the ending slash.

3. Run the batch file in the `install\javaapi\sample` directory. Type the following:

       XmlParseIt inputfile

   where:

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

   The SAX events from the generated XML is output to the current DOS prompt.

## Run XmlParseIt on UNIX

To run XmlParseIt on UNIX

1. In the file `XmlParseIt.bat`, set the following variables.

   `INSTALL_DIR` | The absolute path of the File Content Extraction Export SDK installation directory.
   `PLATFORM` | The platform name.

2. In `XmlSampleConfig.txt`, specify the following values, one on each line.

   Line | Value
   --- | ---
   1 | The path to the template file to use in the conversion. You can use the template files in the directory `install\xmlexport\programs\ini`, where `install` is the Export SDK installation directory.
   2 | The path to the Export SDK `bin` directory.
   3 | The absolute URL pointing to the directory in which the file `Verity.dtd` is located. You must include the ending slash.

3. Run the C shell file in the `install/javaapi/sample` directory. Type the following:

       ./XmlParseIt.csh inputfile

   where:

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

   The SAX events from the generated XML are output to the current console (standard out).

Copyright 1997-2025 Open Text
Version 25.3 | Last updated July 2025

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: File Content Extraction 25.3

Topic Title: XmlParseIt