Running the Utility

This section provides instructions for running the revised CSV to XML Converter utility from the command line.

For Java:

java CSVToXML InputFile.CSV OutputDirectory FileDescription.XML

or

java CSVToXML -h

For C++ on Win32:

CSVToXML InputFile.CSV OutputDirectory FileDescription.XML

or

CSVToXML -h

Options follow the parameters except for the help option, which may be specified by itself.

Parameters:

  • First: File specification of the input CSV file (required). The specification may include the full or relative path name. If no path name is specified, the file is assumed to reside in the current working directory. The full file name must be specified, but there is no restriction on the extension name.

  • Second: Path specification of the output directory (required). The directory must exist. Either a relative or an absolute path name may be specified. The trailing directory separator character is optional. If no break on trading partner is specified, all the created XML files are placed in this directory. If break on trading partner has been specified, then a subdirectory for each trading partner is created beneath this directory.

  • Third: File specification of the File Description XML instance document (required). If no path name is specified, the file is assumed to reside in the current working directory. The full file name must be specified, but there is no restriction on the extension name.

Options:

  • -v (Validate): Validate the created XML documents before writing them to disk. The documents are validated against the schema specified in the file description document.

  • -h (Help): Display a help message and exit without further processing.

Restrictions:

Unless otherwise noted, all numeric limits may be modified by changing parameters in the program source and appropriate type definitions in the file description document schemas.

  • Column delimiter: Any character, not just a comma, may be specified as the column delimiter. However, the selected column delimiter may not appear in a column's contents unless the column's contents are delimited by the specified text delimiter.

  • Text delimiter: Any character, not just a quotation mark, may be specified as the text delimiter. When used the text delimiter must be the first and last characters in the column. In all other cases it is treated as column content. If a character other than the column delimiter appears after the second text delimiter in a column, a parsing error occurs.

  • A column may have a maximum of 1,023 characters.

  • A row may be no longer than 16,383 characters.

  • A maximum of 99 columns per row is supported.

  • There is no absolute limit on the number of rows; the number is only practically limited by system memory.

  • Each column must be assigned a unique Element name.

  • Column Grammar Elements must be specified in ascending order by column number.

  • Element names are limited to 127 characters.

  • Path lengths for complete file specifications are limited to 127 characters.

  • Schema location URIs are limited to 127 characters.

  • A maximum of 999 output XML documents from an input CSV file is supported.

  • A maximum of 100 different trading partner destinations in an input CSV file is supported.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset