Use the dtxany2xml command to produce
a map that can transform any input data into XML output.
This procedure assumes that you know the schema and
type name that models the XML output you want to produce. It also
assumes that if you are using the second map, you know the format
of the schema that was imported from a COBOL copybook.
- Open
a command prompt and change to the product installation directory.
- Use the following command format. The names and paths of
the schema file and the log file are optional. All other command elements
are required.
dtxany2xml <schema (.mtt)
name and path> <root type path to export> <input file name and
path> <new output file name (.xml) and path> <new map name>
[<-schema <schema_file_name/location>][<log
file name and path >]
When the utility runs successfully, you can find the expected
files in the directory that you selected. No "success" message is
displayed. A log file is generated only when the process does not
complete successfully.