Home > classes > @ao > private > xml_add_plist.m

xml_add_plist

PURPOSE ^

XML_ADD_PLIST add a plist object to the given node of the input XML DOM

SYNOPSIS ^

function xml = xml_add_plist(xml, pl, node)

DESCRIPTION ^

 XML_ADD_PLIST add a plist object to the given node of the input XML DOM
 object.
 
 M Hewitson 14-02-07
 
 $Id: xml_add_plist.html,v 1.1 2007/06/08 14:15:04 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function xml = xml_add_plist(xml, pl, node)
0002 
0003 % XML_ADD_PLIST add a plist object to the given node of the input XML DOM
0004 % object.
0005 %
0006 % M Hewitson 14-02-07
0007 %
0008 % $Id: xml_add_plist.html,v 1.1 2007/06/08 14:15:04 hewitson Exp $
0009 %
0010 
0011 
0012 el = xml.docNode.createElement('Plist');
0013 if isa(pl, 'plist')
0014   % add version
0015   elc = xml.docNode.createElement('Version');
0016   elc.appendChild(xml.docNode.createTextNode(get(pl, 'version')));
0017   el.appendChild(elc);
0018   
0019   ps = get(pl, 'params');
0020   for j=1:length(ps)
0021     xml = xml_add_param(xml, ps(j), el);
0022   end
0023 end
0024 
0025 node.appendChild(el);
0026 
0027 
0028 
0029 
0030 
0031 
0032 
0033 
0034 % END

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003