function ret = dttxml_seek_block(tbuf, tseek, find_name, verbose) line_num = 1; while 1 % end of file detection if tseek == length(tbuf)+1 if verbose fprintf(1,'\n'); disp('End of file reached.'); end ret = 0; return end % obtain one line line = tbuf{tseek}; tseek = tseek + 1; line_num = line_num + 1; % check if we find the target line if isempty(regexp(line, ['