Using Any-2-XML

  1. Open a type tree that models the XML output structure you want to produce.
  2. In the type tree editor, select a type that represents the portion of the input file that you want to export.
    This must be a group or item.
  3. Right-click the type and click Export as Schema.
    The Export as Schema dialog opens.
  4. Optional: You can specify the schema name and path if you do not want to use the default values. Click the button at the end of the Schema field, and in the Select window, specify the schema name and path.
  5. Select the Create a map that transforms the input data described by the type tree into XML output check box.
  6. Click the button at the end of the Input file name field, and in the Select window, select the input file that corresponds to the type tree.
  7. In the Output file name field, enter a filename and path for the XML output file that is generated as a result of running the new map. You can also click the button at the end of the field, and make your selections in the Select window.
  8. In the Map file name field, enter a name for the new map source file.
  9. Click OK to start the utility.
    The following files are created:
    • XML Schema (orig_type_tree_name_plus_exported_type_name.xsd, which is the default, or name_you_optionally_specified.xsd)
    • Type tree (orig_type_tree_name_plus_exported_type_name.mtt)
    • Map source file (.mms)

    A log file (map_name.log) is created only when an error occurs.

  10. Open the new map.
  11. Build and run the map.
    An XML output file is created.