0001 function tf = xml_read_time(node)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 disp('-- reading time');
0012
0013 tf = timeformat();
0014 children = node.getChildNodes;
0015
0016 for j=1:children.getLength
0017 ch = children.item(j-1);
0018 nodeName = char(ch.getNodeName);
0019 switch nodeName
0020 case 'format_str'
0021 tf = set(tf, 'format_str', char(ch.getTextContent), 'direct');
0022 case 'format_nr'
0023 tf = set(tf, 'format_nr', str2num(ch.getTextContent), 'direct');
0024 case 'default_matlab_str'
0025 tf = set(tf, 'default_matlab_str', char(ch.getTextContent), 'direct');
0026 case 'default_matlab_nr'
0027 tf = set(tf, 'default_matlab_nr', str2num(ch.getTextContent), 'direct');
0028 case 'default_java_str'
0029 tf = set(tf, 'default_java_str', char(ch.getTextContent), 'direct');
0030 otherwise
0031
0032 end
0033 end
0034
0035
0036