0001 function xml = xml_add_plist(xml, pl, node)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 el = xml.docNode.createElement('Plist');
0013 if isa(pl, 'plist')
0014
0015
0016 elc = xml.docNode.createElement('Version');
0017 elc.appendChild(xml.docNode.createTextNode(get(pl, 'version')));
0018 el.appendChild(elc);
0019
0020 ps = get(pl, 'params');
0021 for j=1:length(ps)
0022 xml = xml_add_param(xml, ps(j), el);
0023 end
0024 end
0025
0026 node.appendChild(el);
0027
0028
0029
0030
0031
0032
0033
0034
0035