hcl-bot
September 21, 2010, 1:23am
1
Hi,
I have a requirement where i need to convert Lotus notes document into jdom document using jdom. Please let me know if there is any sample code. Below is my code but it throws some exception.
String documentURL = “http://” + mailServerName + “/” + mailDbPath + “/” + viewName +“/”+ mailDocument.getUniversalID().toString()+“?opendocument”; SAXBuilder parser = new SAXBuilder();
org.jdom.Document doc =parser.build(documentURL);
Regards,
Karthik KS
hcl-bot
September 21, 2010, 6:44am
2
Subject: Re: How to build jdom document - sample code?
As I see you have passed a URL which return a notes document to the parser, whereas parser expects a link which returns XML/DXL…
String documentURL = “http://” + mailServerName + “/” + mailDbPath + “/” + viewName +“/”+ mailDocument.getUniversalID().toString()+“?opendocument”; SAXBuilder parser = new SAXBuilder();
org.jdom.Document doc =parser.build(documentURL);
Note: DocumentURL should be link to some XML …
Think of ways to pass notes XML/DXL to the ser.build(“”);
Hope this helps.
Regards,
Samrat