Exporting and importing DXL

The DxlExporter class converts Domino data to DXL. Use the createDxlExporter method in Session to create a DxlExporter object. Use the exportDxl method to perform the export. Input to exportDxl can be a Database, Document, DocumentCollection, or NoteCollection object. Output is a String object.

The DxlExporter class has the following properties:

Property Data type Description

getConvertNotesBitmapsToGIF class and setConvertNotesBitmapsToGIF

boolean

true to convert Domino bit maps to GIF format

getDoctypeSYSTEM and setDoctypeSYSTEM

String

value of SYSTEM in the !DOCTYPE statement

getExitOnFirstFatalError and setExitOnFirstFatalError

boolean

true to exit on first fatal error

getForceNoteFormat and setForceNoteFormat

boolean

false to export formatted DXL

getLog

String

XML representation of warnings, errors, and fatal errors generated by the processor

getLogComment and setLogComment

String

comment added to the beginning of the log

getOutputDOCTYPE and setOutputDOCTYPE

boolean

false to suppress the !DOCTYPE statement

The DXLImporter class converts DXL to Domino data. Use the createDXLImporter method in Session to create a DxlImporter object. Input to DxlImporter can be a String, Stream, or NotesRichTextItem object. Output is to a Database object.

The import operation constructs a list of note IDs for the newly imported notes. You can access these note IDs using the getFirstImportedNoteId and getNextImportedNoteId methods.

The DxlImporter class has the following properties:

Property Data type Description

getACLImportOption and setACLImportOption

int

handling of incoming ACL entries

getCreateFTIndex and setCreateFTIndex

boolean

whether the target database is full-text indexed

getDesignImportOption and setDesignImportOption

int

handling of incoming design elements

getDocumentImportOption and setDocumentImportOption

int

handling of incoming documents

getExitOnFirstFatalError and setExitOnFirstFatalError

boolean

true to exit on first fatal error

getImportedNoteCount

int

number of notes imported

getInputValidationOption and setInputValidationOption

int

whether a DTD specified in the XML declaration statement should be used to validate the input XML

getLog

String

XML representation of warnings, errors, and fatal errors generated by the processor

getLogComment and setLogComment

String

comment added to the beginning of the log

getReplaceDbProperties and setReplaceDbProperties

boolean

true replaces the database properties from the DXL

getReplicaRequiredForReplaceOrUpdate and setReplicaRequiredForReplaceOrUpdate

boolean

true requires that the replica ID of the DXL and the target database match

getUnknownTokenLogOption and setUnknownTokenLogOption

Integer

error logging options