diff --git a/six/modules/c++/six/source/XMLControl.cpp b/six/modules/c++/six/source/XMLControl.cpp index ba3868524..daa944b0f 100644 --- a/six/modules/c++/six/source/XMLControl.cpp +++ b/six/modules/c++/six/source/XMLControl.cpp @@ -185,6 +185,11 @@ static void validate_(const xml::lite::Element& rootElement, const std::string& spec, const std::string& version, const std::vector& foundSchemas, logging::Logger& log) { + if (foundSchemas.size() < 1) + { + return; // can't validate without a schema + } + xml::lite::Uri uri; rootElement.getUri(uri);