Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
My experience with Signed XML is based on .Net Framework.
Since PreserveWhiteSpace was already considered, and assuming you are checking Signature against proper XML Node (here I mean OuterXML), check on XML what SignatureMethod Algorithm method was used.
Starting .Net Framework 4.7.1 Default Algorithm has changed from SHA1 to SHA256, because SHA1 is no longer considered secure. I´m assuming same applies to .Net Core due to security concerns.
Check this link https://github.com/microsoft/dotnet/blob/main/Documentation/compatibility/Change-SignedXML-and-SignedCMS-default-algorithms-to-SHA256.md
In past with .Net Framework 4.6, when SHA1 was default, I face with some XML Signed using SHA256, at that time had to add support for SHA256 (I think is not your case).
Some days ago with .Net Framework 4.8, I faced the opposite, XML Signed using SHA1, in this case Recommended Action on link above solved my issue