xml spy
Previous  Top  Next
Document.ExportToDatabase


See also

Declaration: ExportToDatabase(pFromChild as XMLData, pExportSettings as ExportSettings, pDatabase as DatabaseConnection)

Description
ExportToDatabase exports the xml-document starting with the element pFromChild. pExportSettings defines the behaviour of the export (see Application.GetExportSettings), pDatabase sets the destination of the export (see Application.GetDatabaseSettings).

Example

   Dim objDoc As Document
   Set
 objDoc = objSpy.ActiveDocument

   'set the behaviour of the export with ExportSettings

   Dim
 objExpSettings As ExportSettings
   Set
 objExpSettings = objSpy.GetExportSettings

   'set the destination with DatabaseConnection

   Dim
 objDB As DatabaseConnection
   Set
 objDB = objSpy.GetDatabaseSettings

   objDB.CreateMissingTables = True

   objDB.CreateNew = True

   objDB.File = "C:\Export.mdb"

   objDoc.ExportToDatabase objDoc.RootElement, objExpSettings, objDB
   If
 Err.Number <> 0 Then
      a = MsgBox
("Error: " & (Err.Number - vbObjectError) & Chr(13) &
            "Description: " & Err.Description)
   End
 If

Previous  Top  Next

© 2002 Altova