Importing Files Using an XML File
You can define a list of dLaserfiche can import a list of documents that are specified in an appropriate XML format. You can view the XML structure required in the file ImportEngine.xsd, located in the lf-sample-lfsdknet sample repository, along with several sample XML import list files.
Use the ImportEngine class to import the documents described in the XML import list file. The following code sample signs in to the repository myRepo, grabs an existing XML list file Import.xml, and imports it to the folder importFolder.
using (mySession = new Session())
{
RepositoryRegistration myRepoReg =
new RepositoryRegistration("myLFServer", "myRepo");
mySession.LogIn("myUsername", "myPassword", myRepoReg);
ImportEngine impEngine = new ImportEngine(mySession);
impEngine.RootPath = "\\Folder1\\importFolder";
impEngine.VolumeName = "DEFAULT";
impEngine.Process("C:\\Temp\\Import.xml");
}