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