% get root object handle root = xff; % get handles to all documents handles = root.Documents;