Function createEmptyMercurialProperties(db As NotesDatabase) As FileResource
Dim ns As New NotesSession
Dim nd As NotesDocument
Dim importer As NotesDXLImporter
Dim dxl As String
Set db = ns.CurrentDatabase
Set nd = db.CreateDocument
dxl = {<?xml version='1.0'?>
<fileresource name='MercurialProperties.xml' xmlns='http://www.lotus.com/dxl'
version='8.0' maintenanceversion='2.0' replicaid='} + db.ReplicaID + {' publicaccess='false'
designerversion='8'>
<noteinfo noteid='8ca' unid='} + nd.UniversalID + {' sequence='3'>
<created><datetime dst='true'>20100916T121213,33+04</datetime></created>
<modified><datetime dst='true'>20100916T121253,86+04</datetime></modified>
<revised><datetime dst='true'>20100916T121253,85+04</datetime></revised>
<lastaccessed><datetime dst='true'>20100916T121253,85+04</datetime></lastaccessed>
<addedtofile><datetime dst='true'>20100916T121213,35+04</datetime></addedtofile></noteinfo>
<updatedby><name>} + ns.UserName + {</name></updatedby><filedata
>
SABlAGwAbABvACAAVwBvAHIAbABkAA==
</filedata></fileresource>
}
Set importer = ns.CreateDXLImporter
importer.DesignImportOption = DXLIMPORTOPTION_CREATE
Call importer.Import(dxl, db)
Set createEmptyMercurialProperties = FindFileResource(db, "file", "MercurialProperties.xml")
End Function