Basically the idea is to get
<wikiDocumentLocale locale="it"> </wikiDocumentLocale>
instead of
<wikiDocumentLocale> <p> <locale>it</locale> </p> </wikiDocumentLocale>