Skip to content

Commit

Permalink
fix: xml deserialization of licenses with namespace prefix (#350)
Browse files Browse the repository at this point in the history
Signed-off-by: andreas hilti <[email protected]>
  • Loading branch information
andreas-hilti authored Sep 14, 2024
1 parent d1eacc2 commit 56bf356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CycloneDX.Core/Models/LicenseChoice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 56bf356

Please sign in to comment.