Changeset 685 for trunk/src/imadoc2struct.m
- Timestamp:
- Sep 19, 2013, 10:37:44 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/imadoc2struct.m
r675 r685 35 35 %% case of xml files 36 36 if nargin ==1 37 [s,Heading ]=xml2struct(ImaDoc);% convert the whole xml file in a structure s37 [s,Heading,errormsg]=xml2struct(ImaDoc);% convert the whole xml file in a structure s 38 38 elseif nargin ==2 39 [s,Heading ]=xml2struct(ImaDoc,varargin{1});% convert the xml file in a structure s, keeping only the subtree defined in input39 [s,Heading,errormsg]=xml2struct(ImaDoc,varargin{1});% convert the xml file in a structure s, keeping only the subtree defined in input 40 40 else %TODO: deal with more than two subtrees? 41 [s,Heading]=xml2struct(ImaDoc,varargin{1},varargin{2});% convert the xml file in a structure s, keeping only the subtree defined in input 41 [s,Heading,errormsg]=xml2struct(ImaDoc,varargin{1},varargin{2});% convert the xml file in a structure s, keeping only the subtree defined in input 42 end 43 if ~isempty(errormsg) 44 errormsg=['imadoc2struct/xml2struct/' errormsg]; 45 return 42 46 end 43 47 if ~strcmp(Heading,'ImaDoc') 44 errormsg=' the input xml file is not ImaDoc';48 errormsg='imadoc2struct/the input xml file is not ImaDoc'; 45 49 return 46 50 end
Note: See TracChangeset
for help on using the changeset viewer.