XmlParseIt
This program converts 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.
NOTE: 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
-
In the
XmlParseIt.bat
file, setINSTALL_DIR
to the Export SDK installation directory. -
In the first line of the
XmlSampleConfig.txt
file, specify the path to the template file to use in the conversion. You can use any of the template files in theinstall\xmlexport\programs\ini
directory, whereinstall
is the path of the Export installation directory. -
In the second line of the
XmlSampleConfig.txt
file, specify the path to the Export SDKbin
directory. -
In the third line of the
XmlSampleConfig.txt
file, specify the absolute URL pointing to the directory in which theVerity.dtd
is located. You must include the ending slash. -
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
-
In the
XmlParseIt.csh
file, setINSTALL_DIR
to the Export SDK installation directory. -
In the first line of the
XmlSampleConfig.txt
file, specify the path to the template file to use in the conversion. You can use any of the template files in theinstall/xmlexport/programs/ini
directory, whereinstall
is the path of the Export installation directory. -
In the second line of the
XmlSampleConfig.txt
file, specify the path to the Export SDKbin
directory. -
In the third line of the
XmlSampleConfig.txt
file, specify the absolute URL pointing to the directory in which theVerity.dtd
is located. You must include the ending slash. -
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).