From 8179c46b8f83b804e7550e484057f033455aa265 Mon Sep 17 00:00:00 2001 From: "harald.martini@student.tugraz.at" <harald.martini@student.tugraz.at> Date: Mon, 5 Jul 2021 15:11:44 +0200 Subject: [PATCH] Changed Namespace attribute in GetAirdragXMLElementV1 (vif was not created with V1.0 Airdrag component) --- .../VehicleInformationFile/XMLMultistageBusReport.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLMultistageBusReport.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLMultistageBusReport.cs index 4cba8fc012..edb55a49e2 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLMultistageBusReport.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLMultistageBusReport.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.IO; using System.Linq; using System.Security.Cryptography; @@ -66,7 +67,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF protected XNamespace v23 = "urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:DEV:v2.3"; protected XNamespace v28 = "urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:DEV:v2.8"; protected XNamespace v10 = "urn:tugraz:ivt:VectoAPI:DeclarationDefinitions:v1.0"; - + private XElement _primaryVehicle; private List<XElement> _manufacturingStages; private List<XAttribute> _namespaceAttributes; @@ -389,7 +390,8 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF return new XElement(v28 + XMLNames.Component_AirDrag, new XElement(v20 + XMLNames.Report_DataWrap, new XAttribute(xsi + XMLNames.Component_Type_Attr, XMLNames.AirDrag_Data_Type_Attr), - new XAttribute("xmlns", v10.NamespaceName), + //new XAttribute("xmlns", v10.NamespaceName), + new XAttribute(XNamespace.Xmlns + "v1.0", v10.NamespaceName), dataNode.Attributes != null && dataNode.Attributes[XMLNames.Component_ID_Attr] != null ? new XAttribute(XMLNames.Component_ID_Attr, dataNode.Attributes[XMLNames.Component_ID_Attr].InnerText) : null, GetElements(dataNode.ChildNodes) -- GitLab