From 1d9fd7109db4f4e9f1ece533627eb1f2aa4b0b85 Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 11 Dec 2014 22:19:17 +0200 Subject: [PATCH] Validate file by using xsd schema for this version. --HG-- branch : feature --- src/libs/ifc/xml/vpatternconverter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/ifc/xml/vpatternconverter.cpp b/src/libs/ifc/xml/vpatternconverter.cpp index aef1a7d49..ed0e2cce9 100644 --- a/src/libs/ifc/xml/vpatternconverter.cpp +++ b/src/libs/ifc/xml/vpatternconverter.cpp @@ -37,7 +37,8 @@ const QString VPatternConverter::CurrentSchema = QStringLiteral("://schema/pa VPatternConverter::VPatternConverter(const QString &fileName) :VAbstractConverter(fileName) { - QString schema = XSDSchema(ver); + const QString schema = XSDSchema(ver); + ValidateXML(schema, fileName); } //---------------------------------------------------------------------------------------------------------------------