# XmlParseIt

This program converts an input file and sends out SAX events based on the generated XML, and a template file. See Set Conversion Options by Using the Template Files for more information on template files.

Ensure that the `JAVA_HOME` system variable is set and points to your JDK installation directory. This variable is used in the `XmlParseIt.bat` and `XmlParseIt.csh` files.

## Run XmlParseIt on Windows

To run XmlParseIt on Windows

1. In the `XmlParseIt.bat` file, set `INSTALL_DIR` to the Export SDK installation directory.

2. In the first line of the `XmlSampleConfig_nt.txt` file, specify the path to the template file used in the conversion. You can use any of the template files in the `install\xmlexport\programs\ini` directory, where `install` is the path name of the Export installation directory.

3. In the second line of the `XmlSampleConfig_nt.txt` file, specify the path to the directory `Export SDK\bin`.

4. In the third line of the `XmlSampleConfig_nt.txt` file, specify the absolute URL pointing to the directory in which the `Verity.dtd` is located. You must include the ending slash.

5. Copy `XmlSampleConfig_nt.txt` to `XmlSampleConfig.txt`.

6. 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 `XmlParseIt.csh` file, set `MKENV` to the platform on which you are running, either `_hpux11`, `_ilnx21`, `_rs6k43`, or`_ssol26`.

2. In the `XmlParseIt.csh` file, set `INSTALL_DIR` to the Export SDK installation directory.

3. In the first line of the `XmlSampleConfig_unix.txt` file, specify the path to the template file used in the conversion. You can use any of the template files in the `install/xmlexport/programs/ini` directory, where `install` is the path name of the Export installation directory.

4. In the second line of the `XmlSampleConfig_unix.txt` file, specify the path to the `Export SDK/bin` directory.

5. In the third line of the `XmlSampleConfig_unix.txt` file, specify the absolute URL pointing to the directory in which the `Verity.dtd` is located. You must include the ending slash.

   If you have copied the `XmlSampleConfig_unix.txt` and C shell file from a Windows system or edited the files on a Windows system, remove the carriage returns from these files. You can use a utility such as the ColdFusion function `stripcr()` (`http://www.macromedia.com`) to do this. This step is not required if the files are taken from the UNIX installation.

6. Copy `XmlSampleConfig_unix.txt` to `XmlSampleConfig.txt`.

7. 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 is output to the current console (standard out).

© Copyright 2006-2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm