0001 function xml = xml_add_provenance(xml, h, node)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 el = xml.docNode.createElement('Provenance');
0012
0013
0014 elc = xml.docNode.createElement('Creator');
0015 elc.appendChild(xml.docNode.createTextNode(get(h, 'creator')));
0016 el.appendChild(elc);
0017
0018
0019 xml = xml_add_time(xml, get(h, 'created'), 'created', el);
0020
0021
0022 elc = xml.docNode.createElement('IP');
0023 elc.appendChild(xml.docNode.createTextNode(get(h, 'ip')));
0024 el.appendChild(elc);
0025
0026
0027 elc = xml.docNode.createElement('Hostname');
0028 elc.appendChild(xml.docNode.createTextNode(get(h, 'hostname')));
0029 el.appendChild(elc);
0030
0031
0032 elc = xml.docNode.createElement('OS');
0033 elc.appendChild(xml.docNode.createTextNode(get(h, 'os')));
0034 el.appendChild(elc);
0035
0036
0037 elc = xml.docNode.createElement('matlab_version');
0038 elc.appendChild(xml.docNode.createTextNode(get(h, 'matlab_version')));
0039 el.appendChild(elc);
0040
0041
0042 elc = xml.docNode.createElement('sigproc_version');
0043 elc.appendChild(xml.docNode.createTextNode(get(h, 'sigproc_version')));
0044 el.appendChild(elc);
0045
0046
0047 elc = xml.docNode.createElement('ltpda_version');
0048 elc.appendChild(xml.docNode.createTextNode(get(h, 'ltpda_version')));
0049 el.appendChild(elc);
0050
0051 node.appendChild(el);
0052
0053
0054
0055