Home > atmlab > arts > xml > xmlWriteHeader.m

xmlWriteHeader

PURPOSE ^

Writes XML header information to a file.

SYNOPSIS ^

function result = xmlWriteHeader(fid, fidb)

DESCRIPTION ^

 Writes XML header information to a file.

    Internal function that should never be called directly.
    Use *xmlStore* instead.

 FORMAT   result = xmlWriteHeader(fid)

 IN    fid   File descriptor of XML file

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlWriteHeader.m

SOURCE CODE ^

0001 % Writes XML header information to a file.
0002 %
0003 %    Internal function that should never be called directly.
0004 %    Use *xmlStore* instead.
0005 %
0006 % FORMAT   result = xmlWriteHeader(fid)
0007 %
0008 % IN    fid   File descriptor of XML file
0009 
0010 % 2002-12-13   Created by Oliver Lemke.
0011 
0012 function result = xmlWriteHeader(fid, fidb)
0013 
0014 fprintf (fid, '<?xml version="1.0"?>\n');
0015 
0016 if (fidb == -1)
0017     attrlist = xmlAddAttribute([], 'format', 'ascii');
0018 else
0019     attrlist = xmlAddAttribute([], 'format', 'binary');
0020 end
0021 
0022 attrlist = xmlAddAttribute(attrlist, 'version', '1');
0023 
0024 xmlWriteTag(fid, 'arts', attrlist);
0025

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