Home > classes > @ao > private > xml_add_timeformat.m

xml_add_timeformat

PURPOSE ^

XML_ADD_TIMEFORMAT add a time object to the given node of the input XML DOM

SYNOPSIS ^

function xml = xml_add_timeformat(xml, tf, node)

DESCRIPTION ^

 XML_ADD_TIMEFORMAT add a time object to the given node of the input XML DOM
 object.

 Diepholz 23-07-2007

 $Id: xml_add_timeformat.html,v 1.3 2007/11/07 20:58:33 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function xml = xml_add_timeformat(xml, tf, node)
0002 
0003 % XML_ADD_TIMEFORMAT add a time object to the given node of the input XML DOM
0004 % object.
0005 %
0006 % Diepholz 23-07-2007
0007 %
0008 % $Id: xml_add_timeformat.html,v 1.3 2007/11/07 20:58:33 hewitson Exp $
0009 %
0010 
0011 el = xml.docNode.createElement('timeformat');
0012 
0013 % add format_str
0014 elc = xml.docNode.createElement('format_str');
0015 elc.appendChild(xml.docNode.createTextNode(tf.format_str'));
0016 el.appendChild(elc);
0017 
0018 % add format_nr
0019 elc = xml.docNode.createElement('format_nr');
0020 elc.appendChild(xml.docNode.createTextNode(ltpda_mat2str(tf.format_nr')));
0021 el.appendChild(elc);
0022 
0023 % add default_matlab_str
0024 elc = xml.docNode.createElement('default_matlab_str');
0025 elc.appendChild(xml.docNode.createTextNode(tf.default_matlab_str'));
0026 el.appendChild(elc);
0027 
0028 % add default_matlab_nr
0029 elc = xml.docNode.createElement('default_matlab_nr');
0030 elc.appendChild(xml.docNode.createTextNode(ltpda_mat2str(tf.default_matlab_nr')));
0031 el.appendChild(elc);
0032 
0033 % add default_java_str
0034 elc = xml.docNode.createElement('default_java_str');
0035 elc.appendChild(xml.docNode.createTextNode(tf.default_java_str'));
0036 el.appendChild(elc);
0037 
0038 node.appendChild(el);
0039 
0040 
0041 
0042 % END

Generated on Tue 06-Nov-2007 12:08:42 by m2html © 2003