I need to read xml file from local disk using lotus script. I added the code in the script library and called from the notes view.
origXML = "d:\dxl\xmldom.xml"
outputFile = "d:\dxl\DOMtree.txt"
On Error Goto errh
Set session = New NotesSession
Set db = session.CurrentDatabase
'create the output file
Set outputStream =session.CreateStream
outputStream.Open (outputFile)
outputStream.Truncate
Set inputStream = session.CreateStream
inputStream.Open (origXML)
'create DOM parser and process
Set domParser=session.CreateDOMParser(inputStream, outputStream)
domParser.Process
output and input stream , all are getting. But It throws the following error in domParser.Process
Dom parser operation failed
Please help me to solve this. Any help would be appreciated.