Documentation from the file
sparse_matrix/0.1/pl/input_matrix_ascii_to_xml.pl
| Routine |
Name: input_matrix_ascii_to_xml()
Description:
Perl script to read in an ascii file giving (row,column,value) triplets
in ascii format and convert that file's contents to
xml format appropriate for Webnucleo applications.
Syntax:
perl input_matrix_ascii_to_xml.pl ascii_filename xml_filename
Input:ascii_filename: (required)
The name of the input ascii file.
Output:xml_filename: (required)
The name of the output xml file.
If a valid ascii input file is passed into the routine, the routine
will output a valid xml file.
If the command line does not have the input ascii file and output
xml files, the routine will fail and return the appropriate error
message.
If the input file does not exist in the directory, routine will
fail and return the appropriate message.
If the input file is invalid, the routine will fail and return the
appropriate error message.
Example:
Convert the data contained in an input ascii file named
input_matrix.dat into an output xml file named input_matrix.xml:
perl input_matrix_ascii_to_xml.pl input_matrix.dat input_matrix.xml
|
-top-
|