

v01.00.01
Released: 01/02/08
Program Summary
Using the Fairlight CSV to XML Converter, you can generate XML data from a simple
two-
This command-
Supported Platforms
Currently supported platforms are:
Required Modules
The program requires the following modules be installed for Perl on any non-
The self-
Demo Versions
This program can be tested via a web front-
Installation
Windows
Run the Win32 installer.
Other Platforms
Unpack the compressed tar or zip archive into any directory you choose. A subdirectory
named csv2xml-
Edit the first line of the program file to reflect the location of your perl binary!
Usage
csv2xml [options] csv_filename
Options
This option denotes to what file the XML output is written.
This option lets you change the comma separator to some other arbitrary character (or characters).
This option lets you change the double-
This option removes all non-
This specifies the path to which any decoded Base64 files will be saved.
This option is for internal csv2xml development, and/or bug report traces. This option should not normally be used unless you enjoy creating large files for no reason.
This option returns the program version information.
This option returns the program changelog information.
This option returns the program help (a briefer summary of the options) in a self-
CSV Format
The format for the CSV this file uses is very specific. Please adhere to the rules that follow.
Anywhere a non-
"__FLT_TAG_OPEN__","fieldname"
Anywhere a non-
"__FLT_TAG_CLOSE__","fieldname"
Anywhere attributes start for an element, the following line should be output immediately
after either 1) the __FLT_TAG_OPEN__ line that opened the non-
"__FLT_ATT_OPEN__","fieldname"
Anywhere attributes end for an element, the following line should be output:
"__FLT_ATT_CLOSE__","fieldname"
All other lines representing elements with a value should be in the format:
"name","value"
The following is an example of a CSV that would generate valid output:
Note how the attributes for container fields follow tag open lines, and the attributes for the plain data element (newfile) both follow their respective lines.
You can copy the text from the textarea above, save it to a local file, and upload it into the demonstration to see the resultant XML, if you wish.
Auto-
If you prefix an element's value with B64: in the form of:
"Image_Data","B64:/path/to/file"
...then the whole contents of the indicated file will automatically be encoded in Base64 and placed in the field.
Error Detection
All errors will be written to standard output. This means that if the program prints anything to what would be the terminal (or the console window in Windows), there was an error. Redirection of output to a file in any operating system will let you see if there was an error. The error will be contained in the file. If the program was 100% successful, there will be no output of this type, and any redirection destination file would be zero bytes long. If you use this method to catch errors in an automated system, check the file size after using a redirect with the csv2xml command. If the file is larger than zero bytes, check the file for the exact error.
Changelog
v01.00.00 -
Original Release.
v01.00.01 -
Control-
Copyright, License, Warranty, and Payment
This software remains the property of Fairlight Consulting, and license to use the program is sold to users. Fairlight CSV to XML Converter is licensed at a cost of $495.00 USD per server on which it is installed. Each license fee entitles you to use the program on one server, in any role you require.
Upon receipt of payment for a license, program will be delivered to the licensee via email at the email address associated with the PayPal payment.
Upgrades for the product are free when moving to new minor and bugfix point-
There is no warranty for this software. This software is offered "AS-
Good computing practice dictates that any program should be thoroughly tested with
non-