2012-09-18 70 views

回答

0

根據您的問題,您需要將NSF導出到DXL。這將爲您提供整個數據庫的XML表示。之後你可以在eclipse中訪問它。

下面的示例LotusScript代碼會導出數據庫(例如只)

Sub Initialize 
    Dim nsn As New NotesSession 
    Dim ndb As NotesDatabase 
    Dim ndc As NotesDocumentCollection 
    Dim ndo As NotesDocument 
    Dim ndxle As NotesDXLExporter 
    Dim nst As NotesStream 

    On Error Resume Next 

    Set ndb = nsn.CurrentDatabase 
    Set ndc = ndb.UnprocessedDocuments 
    Set ndo = ndc.GetFirstDocument 

    Set nst = nsn.createStream 

    If (Not(nst.Open("c:\DATA.xml"))) Then 
     Print "Open File DATA.xml Failed" 
    End If 

    nst.truncate 

    Set ndxle = nsn.CreateDXLExporter (ndo, nst) 
    Call ndxle.Process() 
    Msgbox ndxle.Log 
    Call nst.Close() 
End Sub 

雖然我建議在信息中心上DXL閱讀了,因爲有大量的選項執行此操作時要考慮。

http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.main.doc/H_EXPORTING_AND_IMPORTING_DXL_JAVA.html

注意Domino Designer中實際上是建立在Eclipse上。因此,您可以右鍵單擊任何設計元素和「查看源代碼」以查看DXL格式。

另外,如果您使用團隊功能,它會將NSF轉換爲DXL,以便將其輕鬆集成到源代碼管理系統中。

更多的細節在這裏:

http://www-10.lotus.com/ldd/ddwiki.nsf/dx/3.7_Source_control

相關問題