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 pl = set(pl, 'version', '');
0015
0016 children = node.getChildNodes;
0017
0018 for j=1:children.getLength
0019
0020 ch = children.item(j-1);
0021 nodeName = char(ch.getNodeName);
0022
0023 switch nodeName
0024 case 'Version'
0025 pl = set(pl, 'version', char(ch.getTextContent));
0026
0027 case 'Param'
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 if isempty(pl.params) && isempty(pl.version)
0039 pl = [];
0040 end
0041
0042
0043