I am trying to import this document:
<?xml version="1.0" encoding="UTF-8"?>
<datetime>20030429</datetime>
Using this code:
Dim session As New NotesSession
Dim importer As NotesDXLImporter
Dim db As NotesDatabase
Dim stream As NotesStream
Set db = session.CurrentDatabase
Set stream = session.createStream
Call stream.Open(“c:\test.xml”)
Set importer = session.CreateDXLImporter(stream, db)
importer.DocumentImportOption=DXLIMPORTOPTION_CREATE
Call importer.Process
And I always get this error:
<?xml version='1.0'?>
Unknown datetimelist element child element: #text
Unknown DXL class library error
DXL importer operation failed
I am at a loss. What am I missing here?
Subject: NotesDXLImporter: Unknown datetimelist element error
I get this also, I figured the import would recognize the same formatting it dishes out… must be a workaround somewhere…
obviously textlist elements work without issues. I wonder if anyone has called this in to Lotus support?
Another post suggests that the problem only occurs when is on a separate line… remains a problem just the same.
Unfortunately, it can create much additional work to attempt to remove all carriage returns and such using XSL, depending on how your source xml is laid out.
I have opened the issue with Lotus.
see this post for another reference:
http://www-10.lotus.com/ldd/nd6forum.nsf/ShowMyTopicsAllFlatweb/d96d2f5bb36b915185256fba00717eb8?OpenDocument