Lotus Notes / Domino Sonstiges > Tools & Downloads
XML unter R5
eknori:
Hier ein interessantes Tool als Erweiterung der LotusScript Klassen, um XML unter R5 zu betreiben.
Die Datenbank enthält neben der erforderlichen DLL auch eine umfangreiche Dokumentation
DXLSX is a LotusScript Extension (LSX) that enables LotusScript developers to work with the Domino XML Language (DXL) in Notes/Domino R5. It allows a developer to export or import one or more documents or design elements in DXL, which is a specific vocabulary of XML for describing NSF data. It is very similar to the functionality provided by the Lotus XML Toolkit utilities DXLImport.exe and DXLExport.exe, the major difference being DXLSX allows importing and exporting to happen programmatically from LotusScript.
Under the hood, DXLSX wraps a number of methods and properties exposed by the C++ classes of the Lotus XML Toolkit. Consequently, it requires that the runtime library (DXLTools10.dll) be present on the machine that the calling LotusScript agent is running on.
"Note that the capabilities provided by DXLSX will be included (and expanded upon) in the next major release of Notes/Domino, code-named "Rnext" at the time of this writing. Using DXLSX, LotusScript developers can take advantage of importing and exporting DXL today, in R5, without having to resort to using Java or C++ to do so.
As DXLSX is an LSX module, it is closely integrated with Notes in that it can raise errors that can be handled using LotusScript's On Error statement, and the methods and properties exposed by the classes in the LSX are viewable in the Domino Designer class browser." ( aus dem Vorwort der Dokumentation)
Die Datenbank gibt es hier:
http://www.eview.com/eview/viewr5.nsf/fdb98a5cb267a12185256a29006d14c0/4d8c5fb74eef39bd85256b3c00629de0/$FILE/dxlsxdoc.nsf
NotesBug:
Hallo eknori
Der vor oder Nachteil diese Lösung ist, das ganze Notesdokumente gemäs der DXL Spec in XML exportiert oder nach Notes importiert werden können. Wenn man andere Daten mit evtl. eigenen Satzaufbau (DTD) verarbeiten will, hilft diese Lösung wenig.
(Ich habe inwischen deshalb mit Java Agenten unter Notes angefangen. Bei XML bietet sich das an.)
eknori:
OK, bin da nicht so bewandert. 8) 8)
zaphod:
--- Zitat --- ...Ich habe inwischen deshalb mit Java Agenten unter Notes angefangen. Bei XML bietet sich das an.
--- Ende Zitat ---
... und wie sind deine ersten erfahrungen damit?
bye bye z
NotesBug:
Gut, wenn ich per LotusScript eine XML Datei importieren will, muß ich den WEB Retriver starten, das Dokumnet per getDocumentbyURL abspeichern und kann die Daten dann erst parsen und weiterverarbeiten. (Ich bekommen die XML Daten per URL von einem WebService)
Per Java muß ich nicht den Webretriver nutzen, sondern kann die XML Daten in eine Variable holen, parsen und weiterverarbeiten.
Nachdem man mit Java die Anfängerfehler gemacht hat, kommt man sich fast wie in LostusScript vor, weil die Befehle sehr ähnlich sind.
Navigation
[0] Themen-Index
[#] Nächste Seite
Zur normalen Ansicht wechseln