0001 function xml = xmladd(ps, xml, nodename, node)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 el = xml.docNode.createElement(nodename);
0012
0013
0014
0015
0016
0017
0018
0019 for j=1:length(ps)
0020 p = ps(j);
0021
0022
0023 elc = xml.docNode.createElement('pole');
0024
0025
0026 elcc = xml.docNode.createElement('name');
0027 elcc.appendChild(xml.docNode.createTextNode(get(p, 'name')));
0028 elc.appendChild(elcc);
0029
0030
0031 xml = xmladd(p.created, xml, 'created', elc);
0032
0033
0034 elcc = xml.docNode.createElement('version');
0035 elcc.appendChild(xml.docNode.createTextNode(get(p, 'version')));
0036 elc.appendChild(elcc);
0037
0038
0039 elcc = xml.docNode.createElement('f');
0040 elcc.appendChild(xml.docNode.createTextNode(ltpda_mat2str(get(p,'f'))));
0041 elc.appendChild(elcc);
0042
0043
0044 elcc = xml.docNode.createElement('q');
0045 elcc.appendChild(xml.docNode.createTextNode(ltpda_mat2str(get(p,'q'))));
0046 elc.appendChild(elcc);
0047
0048 el.appendChild(elc);
0049 end
0050
0051 node.appendChild(el);
0052
0053