getXML - retrieves XML from form object
Retrieves the current state of a form object and all of its child objects and returns it to the calling function as a valid XML string.