Set domParser=session.CreateDOMParser(inputStream, outputStream)
Here , In above code, in “inputStream” i want to pass my ViewName as ReadViewEntry to poen view as XML where inputStream tahke .XML file name, so how to overcome this.
Basically what I ended up doing was fetching the XML, creating a text file, then reading the XML file back in.
Function createXMLFile(textStream) As String
' write contents of XML (from memory) to file on server.
Dim session As NotesSession
Dim stream As NotesStream
Dim pathname As String
Set session = New NotesSession
Set stream = session.CreateStream
pathname = pathname & "somefilename.xml"
If Not stream.Open(fileName, "ASCII") Then
Exit Function
End If
If stream.Bytes <> 0 Then
createXMLFile = "failed"
Exit Function
End If
Call stream.WriteText(textStream, EOL_CRLF)
Call stream.Close
createXMLFile = "done"
End Function
Once you’ve created your XML file you can read it back in with the stream object.