diff --git a/lib/IdPAccountManager/SAMLMetadata.pm b/lib/IdPAccountManager/SAMLMetadata.pm
index 2045f0bfb0e0eccc412ae673cb6e8690fe038dcd..7fb170ce2225a695c7848152087cef8980eb21d1 100644
--- a/lib/IdPAccountManager/SAMLMetadata.pm
+++ b/lib/IdPAccountManager/SAMLMetadata.pm
@@ -55,9 +55,6 @@ sub parse {
         next if ($args{entity_id}
             && ($args{entity_id} ne $data->{entityid}));
 
-        $data->{xml_md} =
-          IdPAccountManager::Tools::escape_xml($EntityDescriptor->toString());
-
         foreach my $child ($EntityDescriptor->childNodes()) {
 
             ## Ignoringnodes of type XML::LibXML::Text or XML::LibXML::Comment