diff --git a/lib/SimpleSAML/Utils/XML.php b/lib/SimpleSAML/Utils/XML.php
index 002212e1652ffe8f0e606548bad58cc109d5cd94..8d1a5f12bb9ce3ea3bb10cf4a461a8fffcfa437a 100644
--- a/lib/SimpleSAML/Utils/XML.php
+++ b/lib/SimpleSAML/Utils/XML.php
@@ -432,8 +432,7 @@ class XML
             $config = \SimpleSAML\Configuration::getInstance();
             /** @var string $schemaPath */
             $schemaPath = $config->resolvePath('schemas');
-            $schemaPath .= './';
-            $schemaFile = $schemaPath.$schema;
+            $schemaFile = $schemaPath.'/'.$schema;
 
             $res = $dom->schemaValidate($schemaFile);
             if ($res) {