Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum



PreviousPrevious NextNext

Projjal Km Ghosh 7.Apr.12 06:23 AM a Web browser
Domino Designer 7.0.2 Windows XP

I wrote the below code for extracting the data from a view to a dxl file.

Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim nc As NotesNoteCollection
Dim exporter As NotesDXLExporter
Dim importer As NotesDXLImporter
Dim filename As String

Set session = New NotesSession
Set db = session.CurrentDatabase

REM Open xml file named after current database

Dim stream As NotesStream
Set stream = session.CreateStream
filename$ = "c:\dxl\" & Left(db.FileName, Len(db.FileName) - 3) & "dxl"
If Not stream.Open(filename$) Then
Messagebox "Cannot open " & filename$,, "Error"
Exit Sub
End If
Call stream.Truncate

Set nc = db.CreateNoteCollection(False)
nc.SelectDocuments = True
Call nc.BuildCollection

REM Export current database as DXL
Set exporter = session.CreateDXLExporter(nc)
Call exporter.SetOutput(stream)
Call exporter.Process
End Sub

The Export is working fine & i am getting a DXL file.
My Document in the view has two date fields & one or two attachments.

My Client has the following questions :-

1. Is the attachment data Base 64 encoded (e.g. the data in $FILE tag)? If not it can not be read by a Pega process.

2. Will you be able to provide a DXL for each notes document ? (Each with distinct file name ? example: <unid>.dxl )(The Client wants to select documents one by one & then Export it - is it possible?)

3.What would be the last updated date ? <modified> tag data ?

4. The date needs to be formatted to YYYY-MM-DD HH:MM:SS

NOTE: Since we will be dealing with huge volumes >60000 documents (each with attachment average size ~ 15MB) it is imperative that we create an XML which contains bare minimum information.

As this is the first time i am doing this - Can some bodyhelp me with the answers?

Export to XML using Lotus Script (Projjal Km Ghos... 7.Apr.12)
. . RE: Export to XML using Lotus Scrip... (MALLIK R PERVEL... 8.Apr.12)
. . . . RE: Export to XML using Lotus Scrip... (Projjal Km Ghos... 9.Apr.12)
. . RE: Export to XML using Lotus Scrip... (Alex Elliott 26.Apr.12)

  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite