Skip to content

Commit

Permalink
Allow validate on xml, sch and xsd
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Dec 19, 2024
1 parent d05591b commit 940a26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/xml/XMLValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ bool XMLValidator::validate(const openstudio::path& xmlPath) {
LOG_AND_THROW(logMessage);
}

if (xmlPath.extension() == ".xml") {
if (xmlPath.extension() == ".xml" || xmlPath.extension() == ".sch" || xmlPath.extension() == ".xsd") {
auto t_xmlPath = openstudio::filesystem::system_complete(xmlPath);
m_xmlPath = t_xmlPath;
} else {
Expand Down

0 comments on commit 940a26a

Please sign in to comment.