O'Reilly logo

Domino Designer 6: A Developer’s Handbook by Gustavo Pecly, Grant McCarthy, Pekka Hartikainen, Andre Guirard, Rune Carlsen, Tommi Tulisalo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required