Example 1: Creating a DOM document

MAIN
  DEFINE d om.DomDocument 
  DEFINE r om.DomNode 
  LET d = om.DomDocument.create("MyDocument")
  LET r = d.getDocumentElement()
END MAIN