Home > atmlab > arts > xml > xmlStoreWithComment.m

xmlStoreWithComment

PURPOSE ^

Writes data to an XML file.

SYNOPSIS ^

function xmlStore(filename, comment, data, type, precision)

DESCRIPTION ^

 Writes  data to an XML file.

    This is the generic writing routine for XML files. You have to give
    the filename, the data and the type of data as a string.

    E.g. writing the vector v to file 'vect.xml':

    xmlStoreWithComment ('vect.xml', 'My comment', v, 'Vector');

    Make sure that the data you're passing has the correct type.

 FORMAT   xmlStoreWithComment(filename, comment, data, type, precision)

 IN    filename   Name of output file
 IN    comment    Comment to store along with the data
 IN    data       Data
 IN    type       Data type
 IN    precision  Precision for output of floating point numbers, could be
                  either 'FLOAT' or 'DOUBLE' (Default: 'FLOAT')

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlStoreWithComment.m

SOURCE CODE ^

0001 % Writes  data to an XML file.
0002 %
0003 %    This is the generic writing routine for XML files. You have to give
0004 %    the filename, the data and the type of data as a string.
0005 %
0006 %    E.g. writing the vector v to file 'vect.xml':
0007 %
0008 %    xmlStoreWithComment ('vect.xml', 'My comment', v, 'Vector');
0009 %
0010 %    Make sure that the data you're passing has the correct type.
0011 %
0012 % FORMAT   xmlStoreWithComment(filename, comment, data, type, precision)
0013 %
0014 % IN    filename   Name of output file
0015 % IN    comment    Comment to store along with the data
0016 % IN    data       Data
0017 % IN    type       Data type
0018 % IN    precision  Precision for output of floating point numbers, could be
0019 %                  either 'FLOAT' or 'DOUBLE' (Default: 'FLOAT')
0020 
0021 % 2002-12-16  Created by Oliver Lemke.
0022 
0023 
0024 function xmlStore(filename, comment, data, type, precision)
0025 
0026 if nargin < 5
0027   xmlStoreImpl(filename, comment, data, type)
0028 else
0029   xmlStoreImpl(filename, comment, data, type, precision)
0030 end
0031

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005