Enterprise Administration > Windchill Data Loading > Using the CSV2XML Utility and Validating the XML Format > CSV2XML Arguments
  
CSV2XML Arguments
The following table describes the arguments available to the CSV2XML utility.
Argument
Description
input <input file name or directory name>
Specifies the file name of the CSV file or the directory where the CSV files are located.
Its path is relative to root. If a directory is specified, then all the files in the directory are converted. If a file is specified, then only the file is converted.
This argument is optional.
output <output directory>
Specifies the directory where to place the output XML files. By default, this is the same as the root directory. This argument is optional.
When specified, this must be a directory; otherwise, an error occurs if a file is specified. The directory must exist.
If the directory already contains an output file, the CSV file conversion does not occur and a diagnostic message is printed. A new file is created and the old file is renamed and backed up. The renaming is done by appending the date and time of the creation of the new file.
root <directory>
Specifies the root directory. By default, the root directory is <Windchill>/src/loadFiles.
help (or h)
Prints information about CSV2XML. This argument is optional.
encoding
Encoding of the source CSV file. This argument is optional. If it is not specified, system-default encoding is used.
mapfile
Absolute path of csvmapfile.txt file. By default, the path is <Windchill>/src/loadFiles/csvmapfile.txt.
delimiter
Specifies the delimiter used in csv file. The default value is , (that is, the default value is a comma).
preservespace
Specifies whether spaces should be preserved in the CSV file.