xmlWriter

(enterprise edition only)
XmlWriter( String fileName, String rootElementName )
XmlWriter( String fileName, String rootElementName, String rootElementText )
XmlWriter( String fileName, String rootElementName, String rootElementText, Hashtable attributes )
Description
Creates a new XmlWriter. The fileName is the path to the XML file that should be written. The root element can be given a name and text as well as attributes by using the various constructors.
Example
// Creates a new writer that will write it's XML file to
// C:\myfile.xml. The root element will be named "root_element"
// and the text of the root element will be "This is the root."
// Note that the forward slash after the "C:" is necessary
// as it must be escaped out for the script interpreter.
xmlWriter = new com.screenscraper.xml.XmlWriter( "C:/myfile.xml", "root_element", "This is the root." );