NotesDXLExporter problem

I have a function that converts a Notes document to DXL using NotesDXLExporter. This function works correctly on my local machine, however there are problems when it is run on the server. When the export is performed on the server, the XML is truncated halfway through a tag (attachment). The NotesStream is set to UTF8 by the export process on both the client and the server.

The client is Notes 7.0.3 FP1 running on Win XP, the server is Notes 7.0.1 running on Win 2003 Server. The code is as follows.

Dim exporter As NotesDXLExporter

Dim stream As NotesStream

Set exporter = session.CreateDXLExporter()

Set stream = session.CreateStream()

Call exporter.setInput(doc)

Call exporter.setOutput(stream)

allData = stream.ReadText()

Call stream.Close()

The allData variable has a length of 49806 on the client, but a length of only 4101 on the server. I am guessing this is some kind of encoding problem, but don’t know why its occurring. Can someone please help me identify the source of the discrepancy? Thanks.

Subject: NotesDXLExporter problem

It could be caused by a different schema-file. Look for the DTD and XSD files in the programdirectory.

Subject: RE: NotesDXLExporter problem

Thanks for the suggestion. I copied domino_7_0_1.* from the xmlschemas directory on my local machine to the server. Unfortunately, the problem remains…