16.5. XML and LotusScript

As we mentioned earlier, one of the biggest disadvantages of hard-coding XML in Domino is its inflexibility. However, we can get the same results programmatically. Agents can be set to run on a schedule, based on an event, or in response to a URL command. This kind of flexibility is necessary to create automated XML applications.

16.5.1. LotusScript agents

Example 16-4 is an agent that retrieves each document in a view called XML, creates XML from the content, and prints the output when opened in a browser.

Example 16-4. LotusScript that converts a view to XML
 Dim s As New NotesSession Dim db As NotesDatabase Dim doc As NotesDocument Dim view As NotesView Set db = s.currentDatabase Set view = db.GetView( "XML" ) Set ...

Get Domino Designer 6: A Developer’s Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.