Add a createXmlFromText method to the I18n class