-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <iostream>
#endif
-Config_ValidatorReader::Config_ValidatorReader(const std::string& theXmlFileName)
-: Config_XMLReader(theXmlFileName)
+Config_ValidatorReader::Config_ValidatorReader(const std::string& theXmlFileName, bool isXMLContent)
+: Config_XMLReader(theXmlFileName, isXMLContent)
{
}
}
}
-bool Config_ValidatorReader::processChildren(xmlNodePtr aNode)
+bool Config_ValidatorReader::processChildren(xmlNodePtr /*aNode*/)
{
return true;
}
aMessage->setValidatorId(aValidatorId);
aMessage->setValidatorParameters(aParameters);
std::string aFeatureId = restoreAttribute(NODE_FEATURE, _ID);
+ if (aFeatureId.length() == 0)
+ aFeatureId = myExtFeatureId;
aMessage->setFeatureId(aFeatureId);
// parent is attribute (widget)
if (!myCurrentWidget.empty()) {