Document (NotesDOMParser - LotusScript®)

Read-only. The document node in a DOM tree. Serves as the root of the tree.

Defined in

NotesDOMParser

Data type

NotesDOMDocumentNode

Syntax

To get: Set notesDOMDocumentNode = notesDOMParser .Document

Usage

To access the document node for an existing DOM tree, use the Process method to generate the DOM tree. Then use the Document property to access the document node. For example:

Dim domparser As NotesDOMParser
Dim domdoc As NotesDOMDocumentNode
Set domParser = session.CreateDOMParser(inputStream, outputStream)
Call domParser.Process
Set domdoc = domparser.Document

To create the document node for a new DOM tree, get the Document property and use CreateDocumentNode to generate the DOM document node. For example:

Dim domparser As NotesDOMParser
Dim domdoc As NotesDOMDocumentNode
Set domparser = session.CreateDOMParser
Set domdoc = domparser.Document.CreateDocumentNode

Example