write(java.io.File&nbsp;file,
            java.lang.Object&nbsp;o)
                     throws java.lang.Exception</pre>
<div class="block">write the XML-serialized object to the given file</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>file</code> - the file to serialize the object to</dd><dd><code>o</code> - the object to write to the file</dd>
<dt><span class="strong">Returns:</span></dt><dd>whether writing was successful or not</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><