Sylvia, I used the following function, which shows the parameters for F_ApiOpen(). Note that this worked for the one problem I was having with the "unknown file type" dialog box. There are a myriad of other XML errors that can occur which you may not be able to get around.
Russ
F_ObjHandleT ws_OpenFile_IgnoreErrors_HonorLock_Visible(StringT ofFilePath)
{
F_PropValsT openScript, *returnp = NULL;
UIntT sn;
F_ObjHandleT ofDocId;
openScript = F_ApiGetOpenDefaultParams();
sn = F_ApiGetPropIndex(&openScript, FS_AlertUserAboutFailure);
openScript.val[sn].propVal.u.ival = False;
sn = F_ApiGetPropIndex(&openScript, FS_BookIsInUse);
openScript.val[sn].propVal.u.ival = FV_DoCancel;
sn = F_ApiGetPropIndex(&openScript, FS_DontNotifyAPIClients);
openScript.val[sn].propVal.u.ival = True;
sn = F_ApiGetPropIndex(&openScript, FS_FileIsInUse);
openScript.val[sn].propVal.u.ival = FV_DoCancel;
sn = F_ApiGetPropIndex(&openScript, FS_FontChangedMetric);
openScript.val[sn].propVal.u.ival = FV_DoOK;
sn = F_ApiGetPropIndex(&openScript, FS_FontChangedMetric);
openScript.val[sn].propVal.u.ival = FV_DoOK;
sn = F_ApiGetPropIndex(&openScript, FS_FontNotFoundInCatalog);
openScript.val[sn].propVal.u.ival = FV_DoOK;
sn = F_ApiGetPropIndex(&openScript, FS_FontNotFoundInDoc);
openScript.val[sn].propVal.u.ival = FV_DoOK;
sn = F_ApiGetPropIndex(&openScript, FS_LanguageNotAvailable);
openScript.val[sn].propVal.u.ival = FV_DoOK;
sn = F_ApiGetPropIndex(&openScript, FS_LockCantBeReset);
openScript.val[sn].propVal.u.ival = FV_DoOK;
sn = F_ApiGetPropIndex(&openScript, FS_MakeVisible);
openScript.val[sn].propVal.u.ival = True;
sn = F_ApiGetPropIndex(&openScript, FS_NewDoc);
openScript.val[sn].propVal.u.ival = False;
sn = F_ApiGetPropIndex(&openScript, FS_OpenBookViewOnly);
openScript.val[sn].propVal.u.ival = False;
sn = F_ApiGetPropIndex(&openScript, FS_OpenDocViewOnly);
openScript.val[sn].propVal.u.ival = False;
sn = F_ApiGetPropIndex(&openScript, FS_OpenFileNotWritable);
openScript.val[sn].propVal.u.ival = FV_DoOK;
sn = F_ApiGetPropIndex(&openScript, FS_RefFileNotFound);
openScript.val[sn].propVal.u.ival = FV_AllowAllRefFilesUnFindable;
sn = F_ApiGetPropIndex(&openScript, FS_UseAutoSaveFile);
openScript.val[sn].propVal.u.ival = FV_DoNo;
sn = F_ApiGetPropIndex(&openScript, FS_UpdateTextReferences);
openScript.val[sn].propVal.u.ival = FV_DoNo;
sn = F_ApiGetPropIndex(&openScript, FS_UpdateXRefs);
openScript.val[sn].propVal.u.ival = FV_DoNo;
sn = F_ApiGetPropIndex(&openScript, FS_UseRecoverFile);
openScript.val[sn].propVal.u.ival = FV_DoNo;
sn = F_ApiGetPropIndex(&openScript, FS_UseAutoSaveFile);
openScript.val[sn].propVal.u.ival = FV_DoNo;
//open the document
ofDocId = F_ApiOpen(ofFilePath, &openScript, &returnp);
//we are done with these structures, so deallocate
F_ApiDeallocatePropVals(&openScript);
F_ApiDeallocatePropVals(returnp);
return ofDocId;
}