From 56bf3567de7efd5c66d83c9e4355253921f24cc3 Mon Sep 17 00:00:00 2001 From: andreas-hilti <69210561+andreas-hilti@users.noreply.github.com> Date: Sat, 14 Sep 2024 17:50:56 +0200 Subject: [PATCH] fix: xml deserialization of licenses with namespace prefix (#350) Signed-off-by: andreas hilti <69210561+andreas-hilti@users.noreply.github.com> --- src/CycloneDX.Core/Models/LicenseChoice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CycloneDX.Core/Models/LicenseChoice.cs b/src/CycloneDX.Core/Models/LicenseChoice.cs index c2af6c36..0ee1890c 100644 --- a/src/CycloneDX.Core/Models/LicenseChoice.cs +++ b/src/CycloneDX.Core/Models/LicenseChoice.cs @@ -89,7 +89,7 @@ public void ReadXml(System.Xml.XmlReader reader) Licenses.Add(new LicenseChoice { License = license }); finished = false; } - if (reader.Name == "expression") + if (reader.LocalName == "expression") { string bomRef = null; LicenseAcknowledgementEnumeration? acknowledgement = null;