Can we pass Rich text field to convert it to XML in the NotesXMLExporter. In one of the help topics, it says we can pass rich text item to Setinput method for all other processes, but did not find any example. Please help.
Subject: Notes XML Exporter
No. You would need to pass the document (or document/note collection). The help entry specifically says what you can set the input to when using the NotesDXLExporter class. “All other processes” refers to other classes - not the NotesDXLExporter - that inherit from the NotesXMLProcessor abstract class. If you only want a DXL/XML representation of a rich text item, you would need to pass the result to a NotesDOMProcessor, then use the appropriate DOM methods to extract the rich text item node, or to a NotesSAXProcessor and look for the node you want. (Or you could just work on the string as a string, but that may present difficulties with encoding.)