0001 function h = xml_read_hist(node)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 disp('-- reading history');
0012
0013 h = history();
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 'Name'
0021 h = set(h, 'name', char(ch.getTextContent));
0022 case 'Created'
0023 h = set(h, 'created', char(ch.getTextContent));
0024 case 'Invars'
0025 h = set(h, 'invars', ltpda_str2cells(char(ch.getTextContent)));
0026 case 'Plist'
0027 pl = xml_read_plist(ch);
0028 h = set(h, 'plist', pl);
0029 case 'Version'
0030 h = set(h, 'version', char(ch.getTextContent));
0031 case 'hist'
0032 ih = get(h, 'inhists');
0033 ihnew = xml_read_hist(ch);
0034 h = set(h, 'inhists', [ih ihnew]);
0035 otherwise
0036
0037 end
0038 end
0039
0040
0041