/pre></div><p>And let's try it out. We create a <i>DateTest</i> class with a
<i>main</i> method:</p><ol style="list-style-type: decimal">
<li>creates a calendar (current date)</li>
<li>creates the XStream object</li>
<li>registers the converter with a Brazilian Portuguese locale</li>
<li>translates the object in XML</li>
</ol>
<p>Well, we already know how to do all those steps... so let's go:</p>
<div class="Source Java"><pre>package com.thoughtworks.xstream.examples;

import java.util.Calendar;
import java