Running the Utility


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

For Java:

java XMLToCSVBasic InputFile.XML OutputFile. CSV

or

java XMLToCSVBasic -h

For C++ on Win32:

XMLToCSVBasic InputFile.XML OutputFile. CSV

or

XMLToCSVBasic -h

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

Parameters:

  • First : File specification of the input XML document (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 : File specification of the output CSV file (required). The specification may include the full or relative path name. If no path name is specified, the file will be created in the current working directory. An extension may be specified, but if not specified the file will be created without one. If a file with the specified name already exists, it will be overwritten.

Options:

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

Restrictions:

  • A column may have a maximum of 1,024 characters (may be modified by parameter in the program source).

  • A row may be no longer than 16,384 characters (may be modified by parameter in the program source).

  • Quotation marks may not appear in the text content of a ColumnXX Element.

  • A maximum of 99 columns per row is supported, that is, columns may be numbered from 1 to 99.

  • If duplicate ColumnXX Elements occur in a Row Element, the ColumnXX last processed is the one written out.

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

  • The input XML document is not validated against a schema or a DTD. (Validation will be introduced in Chapter 5.)



Using XML with Legacy Business Applications
Using XML with Legacy Business Applications
ISBN: 0321154940
EAN: 2147483647
Year: 2003
Pages: 181

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net