0001 function plo = fromxml(xml)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 pl.params = [];
0015 sch = xml.getChildNodes;
0016 for c=1:sch.getLength
0017 x = sch.item(c-1);
0018 switch char(x.getNodeName)
0019 case 'version'
0020 pl.version = char(x.getTextContent);
0021 case 'params'
0022
0023 ps = x.getChildNodes;
0024 for j=1:ps.getLength
0025 pn = ps.item(j-1);
0026 if strcmp((pn.getNodeName), 'param')
0027 pl.params = [pl.params param(pn)];
0028 end
0029 end
0030 otherwise
0031 end
0032 end
0033
0034
0035 plo = plist(pl);
0036
0037