Home > classes > @specwin > xmladd.m

xmladd

PURPOSE ^

XMLADD adds specwin object to the given node of the xml input

SYNOPSIS ^

function xml = xmladd(p, xml, nodename, node)

DESCRIPTION ^

 XMLADD adds specwin object to the given node of the xml input
 DOM.

 M Hewitson 14-02-07

 $Id: xml_add_specwin.m,v 1.5 2007/07/30 12:13:10 ingo Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function xml = xmladd(p, xml, nodename, node)
0002 
0003 % XMLADD adds specwin object to the given node of the xml input
0004 % DOM.
0005 %
0006 % M Hewitson 14-02-07
0007 %
0008 % $Id: xml_add_specwin.m,v 1.5 2007/07/30 12:13:10 ingo Exp $
0009 %
0010 
0011 el = xml.docNode.createElement(nodename);
0012 
0013 % Now add object
0014 elc = xml.docNode.createElement('specwin');
0015 
0016 
0017 % add version
0018 elcc = xml.docNode.createElement('version');
0019 elcc.appendChild(xml.docNode.createTextNode(p.version));
0020 elc.appendChild(elcc);
0021 
0022 % add name
0023 elcc = xml.docNode.createElement('name');
0024 elcc.appendChild(xml.docNode.createTextNode(p.name));
0025 elc.appendChild(elcc);
0026 
0027 % add psll
0028 elcc = xml.docNode.createElement('psll');
0029 elcc.appendChild(xml.docNode.createTextNode(ltpda_mat2str(p.psll)));
0030 elc.appendChild(elcc);
0031 
0032 % add N
0033 elcc = xml.docNode.createElement('n');
0034 elcc.appendChild(xml.docNode.createTextNode(ltpda_mat2str(length(p.win))));
0035 elc.appendChild(elcc);
0036 
0037 
0038 el.appendChild(elc);
0039 node.appendChild(el);
0040 
0041 
0042 
0043 % END

Generated on Mon 03-Sep-2007 12:12:34 by m2html © 2003