0001 function pl = xml_read_plist(node)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 disp('-- reading plist');
0012
0013 pl = plist();
0014
0015 children = node.getChildNodes;
0016
0017 for j=1:children.getLength
0018
0019 ch = children.item(j-1);
0020 nodeName = char(ch.getNodeName);
0021
0022 switch nodeName
0023 case 'Version'
0024 pl = set(pl, 'version', char(ch.getTextContent));
0025
0026 case 'Param'
0027
0028 ps = get(pl, 'params');
0029 p = xml_read_param(ch);
0030 pl = set(pl, 'params', [ps p]);
0031
0032 otherwise
0033
0034 end
0035
0036 end
0037
0038
0039
0040
0041