Changeset 29 for trunk/src/update_imadoc.m
- Timestamp:
- Mar 3, 2010, 10:48:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/update_imadoc.m
r17 r29 10 10 testappend=0; 11 11 if exist(outputfile,'file');%=1 if the output file already exists, 0 else 12 testappend=1; 12 13 t=xmltree(outputfile); %read the file 13 14 backupfile=outputfile; … … 28 29 [t,uid_calib]=add(t,1,'element','GeometryCalib'); 29 30 else %if GeometryCalib already exists, delete its content 30 % backupfile=outputfile;31 % testexist=2;32 % while testexist==233 % backupfile=[backupfile '~'];34 % testexist=exist(backupfile,'file');35 % end36 % [success,message]=copyfile(outputfile,backupfile);%make backup37 31 if isequal(success,1) 38 32 delete(outputfile) … … 42 36 uid_child=children(t,uid_calib); 43 37 t=delete(t,uid_child); 44 testappend=1;45 38 end 46 39 end … … 49 42 t=set(t,1,'name','ImaDoc'); 50 43 [t,uid_calib]=add(t,1,'element','GeometryCalib'); 51 % t=struct2xml(GeometryCalib,t,uid_calib);52 44 end 53 45 t=struct2xml(GeometryCalib,t,uid_calib);
Note: See TracChangeset
for help on using the changeset viewer.