addElement

(enterprise edition only)
Element XmlWriter.addElement( String name )
Element XmlWriter.addElement( String name, String text )
Element XmlWriter.addElement( String name, String text, Hashtable attributes )
Element XmlWriter.addElement( Element elementToAppendTo, String name )
Element XmlWriter.addElement( Element elementToAppendTo, String name, String text )
Element XmlWriter.addElement( Element elementToAppendTo, String name, String text, Hashtable attributes )
Description
Writes out a single element to the XML file. Each of these method calls return an Element object, which can subsequently be passed to other calls in order to add sub-nodes to an element.
Example
The best way to see this in action is to refer to the examples in the main XmlWriter documentation page.