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 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