Write this agent must pay attention to fault tolerance. Otherwise an error can affect the entire XML documentation.
BULIDXML? OPENAGENT
When used:
VAR XML = New ActiveXObject ("Microsoft.xmLDom"); XML.Assync = false; Xml.Load ("BulidXML? OpenAgent");
= - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - =
Sub Initialize Dim s As New NotesSession Dim db As NotesDatabase Dim view As NotesView Dim doc As NotesDocument Set db = s.CurrentDatabase Set view = db.GetView ( "Tasks") Set doc = view.GetFirstDocument Print {Content-Type: text / XML} print {cache-control: no-cache} print { xml version = "1.0" encoding = "gb2312"?>} while not doc is nothing print} while not doc is nothing print {