Convert XML to binary from command line

Convert XML to binary from command line

Convert XML area models to the proprietary binary format from the command line using the supplied program
AreaModelConvert.exe
. Only well-formed, schema-conformed, and program-validated XML files convert. When exporting from a command line, change to the directory containing
AreaModelConvert.exe
and the paths cannot contain any spaces. UNC names are also supported, as demonstrated in this syntax example: The syntax for the command line is:
C:AreaModelConvert.EXE InputFile OutputFile LogFile
Where:
  • InputFile specifies the path for the input XML filename.
  • OutputFile specifies the path for output binary filename.
  • LogFile specifies the path for log file.
Example:
C:AreaModelConvert.EXE \\Batchctl\SampleDemo1\recipes\ice_cream1.axml \\Batchctl\SampleDemo1\recipes\ice_cream1.cfg \\Batchctl\SampleDemo1\logs\convert.log
The command line validates the information in the XML file and overwrites the existing file specified by
OutputFile
. Error messages append to the log file.
IMPORTANT: The command line program will not validate material-specific information, which includes:
  • Running status of the Material Server
  • Existence of the referenced materials
  • Existence of the referenced material classes
  • Existence of the referenced containers
If the command line arguments are valid, the program returns a
0
(zero), indicating a successful import. If the command line arguments are invalid, the command line program returns a
1
(one), indicating a failure. View the return code in the log file to check if the conversion succeeded or failed.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal