DXL Import and example in the help is alll bad..!

Guys i was recently trying to do a export of some documents from domino and then re-import.

Did the old copy and paste from help and tried to use that… But on import i kept getting errors line 1, column 1… After much aggravation i finally worked out why… The help example uses “write” to create the text file and as it feeds a string it gets wrapped by inverted comma’s and the NotesDXLImporter does not strip them…grrrrr

The help suggests this

filenum = Freefile

Open filename For Output As filenum

Write #filenum, dxloutput

Close filenum

However i found this works much better

fileNum% = Freefile()

Open filename For Output As fileNum%	

Print #fileNum%, dxloutput

Close fileNum%

Words that i search on so other people get hits when they search.

DXL

Import

Export

error

“<?xml version='1.0'?>Invalid document structureUnknown DXL class library errorDXL importer operation failed”

Oh and hi guys, long time now post…!

Subject: Thanks, I forwarded this to the documentation team for correction.