LotusScript & Document - XML question

I am using LotusScript and XML to build a document in a database. I would also like to add some validation and checks for some of the fields using LS and place the LS in the Initialize event of the Field.

Can somebody point me to how I may introduce the LS … I can successfully build the document and create the field. I can also add text to the field …

I an using using the following

Sub Initialize

print"validation script test)