Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 0dd91b0f authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

bugfix hashing tool: only select components that are certified, i.e., the Model tag is present

parent c466193e
No related branches found
No related tags found
No related merge requests found
...@@ -198,7 +198,7 @@ namespace HashingTool.ViewModel.UserControl ...@@ -198,7 +198,7 @@ namespace HashingTool.ViewModel.UserControl
{ {
var retVal = new List<string>(); var retVal = new List<string>();
foreach (var component in EnumHelper.GetValues<VectoComponents>()) { 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())); XMLNames.VectoManufacturerReport, component.XMLElementName()));
var count = nodes == null ? 0 : nodes.Count; var count = nodes == null ? 0 : nodes.Count;
for (var i = 0; i < count; i++) { for (var i = 0; i < count; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment