Home > atmlab > arts > xml > xmlStore.m

xmlStore

PURPOSE ^

Writes data to an XML file.

SYNOPSIS ^

function xmlStore(filename, 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':

    xmlStore ('vect.xml', v, 'Vector');

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

 FORMAT   xmlStore(filename, data, type, precision)

 IN    filename   Name of output file
 IN    data       Data
 IN    type       Data type
 IN    precision  Precision for output of floating point numbers, could be
                  either 'FLOAT' or 'DOUBLE' or 'BINARY' (Default:'FLOAT')
                  Binary files always have double precision and 4-byte
                  integer with little-endian byte-order

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlStore.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 %    xmlStore ('vect.xml', v, 'Vector');
0009 %
0010 %    Make sure that the data you're passing has the correct type.
0011 %
0012 % FORMAT   xmlStore(filename, data, type, precision)
0013 %
0014 % IN    filename   Name of output file
0015 % IN    data       Data
0016 % IN    type       Data type
0017 % IN    precision  Precision for output of floating point numbers, could be
0018 %                  either 'FLOAT' or 'DOUBLE' or 'BINARY' (Default:'FLOAT')
0019 %                  Binary files always have double precision and 4-byte
0020 %                  integer with little-endian byte-order
0021 
0022 % 2002-12-16  Created by Oliver Lemke.
0023 
0024 
0025 function xmlStore(filename, data, type, precision)
0026 
0027 if nargin < 4
0028   xmlStoreImpl(filename, '', data, type)
0029 else
0030   xmlStoreImpl(filename, '', data, type, precision)
0031 end
0032

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