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