diff --git a/journals/views.py b/journals/views.py
index b2a0a02b5e291fb187247055547e2e23608ff335..76edb9660e7f6561eec72c1b9612779bf42a9f22 100644
--- a/journals/views.py
+++ b/journals/views.py
@@ -1031,7 +1031,7 @@ def generic_metadata_xml_deposit(request, **kwargs):
         '</head>\n'
         '<body>\n'
         '<database><dataset>\n'
-        '<dataset_type>component<\dataset_type>\n'
+        '<dataset_type>component</dataset_type>\n'
         '<doi_data><doi>' + _object.doi_string + '</doi>\n'
         '<resource>https://scipost.org' + _object.get_absolute_url() + '</resource></doi_data>\n'
         '</dataset></database>\n'