This program converts an input stream to an output stream using Java API calls in XML Export, and a template file. See Explore Conversion Options with the Sample Programs for more information on templates.
To run XmlConvStreamToStream on Windows
In the XmlConvStreamToStream.bat
file, set INSTALL_DIR
to the Export SDK installation directory.
In the first line of the XmlSampleConfig_nt.txt
file, specify the path to the template file used in the conversion. You can use the template files in the install\xmlexport\programs\ini
directory, where install
is the path name of the Export installation directory.
In the second line of the XmlSampleConfig_nt.txt
file, specify the path to the directory Export SDK\bin
.
Copy XmlSampleConfig_nt.txt
to XmlSampleConfig.txt
.
Run the batch file in the directory install\javaapi\sample
. Type the following:
XmlConvStreamToStream inputfile
where:
inputfile
is the path and file name of the source file.
The generated XML is output to the current DOS prompt.
To run XmlConvStreamToStream on UNIX
In the XmlConvStreamToStream.csh
file, set MKENV
to the platform on which you are running, either _hpux11
, _ilnx21
, _rs6k43
, or _ssol26
.
In the XmlConvStreamToStream.csh
file, set INSTALL_DIR
to the Export SDK installation directory.
In the first line of the XmlSampleConfig_unix.txt
file, specify the path to the template file used in the conversion. You can use the template files in the install/xmlexport/programs/ini
directory, where install
is the path name of the Export installation directory.
In the second line of the XmlSampleConfig_unix.txt
file, specify the path to the directory Export SDK/bin
.
NOTE: 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.
Run the C shell file in the install/javaapi/sample
directory. Type the following:
./XmlConvStreamToStream.csh inputfile
where:
inputfile
is the path and file name of the source file.
The generated XML is output to the current console (standard out).