Changeset 685 for trunk/src/xml2struct.m
- Timestamp:
- Sep 19, 2013, 10:37:44 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/xml2struct.m
r675 r685 10 10 % varargin: optional list of strings to restrict the reading to a selection of subtrees, for instance 'GeometryCalib' (save time) 11 11 12 function [s,Heading]=xml2struct(filename,varargin) 12 function [s,Heading,errormsg]=xml2struct(filename,varargin) 13 s=[]; 14 Heading=''; 15 errormsg=''; 16 try 13 17 t=xmltree(filename); 18 catch ME 19 errormsg=ME.message; 20 if regexp(ME.message,'xml_findstr') 21 errormsg=[errormsg ': xmltree not correctly installed, download from www.artefact.tk/software/matlab/xml']; 22 end 23 return 24 end 14 25 iline=0; 15 Heading=''; 26 16 27 while isempty(Heading) 17 28 iline=iline+1;
Note: See TracChangeset
for help on using the changeset viewer.