generateXML (Document - Java™)
Generates an XML representation of a document to the Writer. The XML conforms to the Domino Document DTD.
Defined in
Syntax
public String generateXML()
throws NotesException
public void generateXML(java.io.Writer w)
throws NotesException, java.io.IOException
public void generateXML(Object style, XSLTResultTarget result)
throws NotesException, java.io.IOException, org.xml.sax.SAXException
Parameters
java.io.Writer w
The Writer that will receive the result XML.
Object style
The style sheet you want to use to transform the generated XML.
XSLTResultTarget result
The object that receives the transformed XML.
Return value
String
The XML representation of the document.
Usage
This method takes the same arguments as the transformXML method in EmbeddedObject, Item, MIMEEntity, and RichTextItem. The transformXML method reads the XML from an item, attachment, MIMEEntity, or rich text item and transforms the XML. The generateXML method generates the XML from the document and then transforms it.
The generateXML method supports the following simple items:
- Text
- Text list
- Number
- Number list
- Datetime
- Datetime list
To generate form semantics, you must call computeWithForm method before calling the generateXML method.