From 0dd91b0f01d96310fb481972566653c984c6e5e1 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Wed, 7 Feb 2018 14:03:36 +0100 Subject: [PATCH] bugfix hashing tool: only select components that are certified, i.e., the Model tag is present --- HashingTool/ViewModel/UserControl/ManufacturerReportXMLFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HashingTool/ViewModel/UserControl/ManufacturerReportXMLFile.cs b/HashingTool/ViewModel/UserControl/ManufacturerReportXMLFile.cs index d6adf8d548..577aed3639 100644 --- a/HashingTool/ViewModel/UserControl/ManufacturerReportXMLFile.cs +++ b/HashingTool/ViewModel/UserControl/ManufacturerReportXMLFile.cs @@ -198,7 +198,7 @@ namespace HashingTool.ViewModel.UserControl { var retVal = new List<string>(); foreach (var component in EnumHelper.GetValues<VectoComponents>()) { - var nodes = _xmlFile.Document.SelectNodes(string.Format("//*[local-name()='{0}']//*[local-name()='{1}']", + var nodes = _xmlFile.Document.SelectNodes(string.Format("//*[local-name()='{0}']//*[local-name()='{1}']/*[local-name()='Model']", XMLNames.VectoManufacturerReport, component.XMLElementName())); var count = nodes == null ? 0 : nodes.Count; for (var i = 0; i < count; i++) { -- GitLab