diff --git a/journals/views.py b/journals/views.py
index 81cb53d3633a6196965f10d1f683a6c025a02a36..58fcaf61d1eadbca8690433f6358faed1725a1a5 100644
--- a/journals/views.py
+++ b/journals/views.py
@@ -1032,7 +1032,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'