Skip to content

Commit

Permalink
Fix xml deserialization of licenses with namespace prefix
Browse files Browse the repository at this point in the history
Signed-off-by: andreas hilti <[email protected]>
  • Loading branch information
andreas-hilti committed Sep 7, 2024
1 parent a42f0bf commit 980d889
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 @@ -81,7 +81,7 @@ public void ReadXml(System.Xml.XmlReader reader)
Licenses.Add(new LicenseChoice { License = license });
finished = false;
}
if (reader.Name == "expression")
if (reader.LocalName == "expression")
{
reader.ReadStartElement();
var expression = reader.ReadContentAsString();
Expand Down

0 comments on commit 980d889

Please sign in to comment.