  xStream.registerConverter(new DateConverter(new Locale(&quot;pt&quot;, &quot;br&quot;)));

                // prints the result
                System.out.println(xStream.toXML(calendar));

        }

}</pre></div><p>The result? Well... it depends, but it will be something
like:</p><div class="Source Java"><pre>&lt;gregorian-calendar&gt;Sexta-feira, 10 de Fevereiro de 2006&lt;/gregorian-calendar&gt;</pre></div><p>Note:
we did not put any alias as <i>gregorian-calendar</i> is the default alias for
<i>Grego