Generating XML in Java classes

Use the generateXML method of Document to generate an XML representation of a document that conforms to the Domino® Document DTD.