Home > atmlab > arts > xml > xmlWriteTag.m

xmlWriteTag

PURPOSE ^

Write a tag to an XML file.

SYNOPSIS ^

function xmlWriteTag(fid, name, attrlist)

DESCRIPTION ^

 Write a tag to an XML file.

    Internal function.

 FORMAT   xmlWriteTag(fid, name, attrlist)

 IN    fid        File descriptor of output file
 IN    name       Tag name
 IN    attrlist   List of attributes

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlWriteTag.m

SOURCE CODE ^

0001 % Write a tag to an XML file.
0002 %
0003 %    Internal function.
0004 %
0005 % FORMAT   xmlWriteTag(fid, name, attrlist)
0006 %
0007 % IN    fid        File descriptor of output file
0008 % IN    name       Tag name
0009 % IN    attrlist   List of attributes
0010 
0011 % 2002-12-13   Created by Oliver Lemke.
0012 
0013 function xmlWriteTag(fid, name, attrlist)
0014 
0015 fprintf(fid, '<%s', name);
0016 
0017 j = size(attrlist);
0018 
0019 for i = 1:j(1)
0020   fprintf(fid, ' %s="%s"', attrlist {i,1}, attrlist {i,2});
0021 end
0022 
0023 fprintf(fid, '>\n', name);
0024 
0025 clear i j name;
0026

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