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