Home > atmlab > arts > xml > xmlAddAttribute.m

xmlAddAttribute

PURPOSE ^

Internal function to add a name/value pair to an attribute list.

SYNOPSIS ^

function attrlist = xmlAddAttribute(attrlist, name, value)

DESCRIPTION ^

 Internal function to add a name/value pair to an attribute list.

    Used by the writing routines to create the attribute list for a tag.

 FORMAT   attrlist = xmlAddAttribute(attrlist, name, value)

 OUT   attrlist   List of attributes
 IN    attrlist   List of attributes
 IN    name       Attribute name
 IN    value      Attribute value

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlAddAttribute.m

SOURCE CODE ^

0001 % Internal function to add a name/value pair to an attribute list.
0002 %
0003 %    Used by the writing routines to create the attribute list for a tag.
0004 %
0005 % FORMAT   attrlist = xmlAddAttribute(attrlist, name, value)
0006 %
0007 % OUT   attrlist   List of attributes
0008 % IN    attrlist   List of attributes
0009 % IN    name       Attribute name
0010 % IN    value      Attribute value
0011                                                                                                                                
0012 % 2002-12-13   Created by Oliver Lemke.
0013 
0014 function attrlist = xmlAddAttribute(attrlist, name, value)
0015 
0016 j = size(attrlist);
0017 na = j(1);
0018 
0019 na = na + 1;
0020 attrlist{na,1} = name;
0021 attrlist{na,2} = value;
0022

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