有没有办法签署XDocument?

时间:2022-07-28 18:24:44

I would like to sign my XDocument XML document (to verify it later on). Is there any way to sign an XDocument or do you have to convert it to an XmlDocument?

我想签署我的XDocument XML文档(稍后进行验证)。有没有办法签署XDocument或你必须将其转换为XmlDocument?

http://www.west-wind.com/weblog/posts/257599.aspx

1 个解决方案

#1


2  

Maybe you can use the SignedXml.LoadXml method to initialize a SignedXml with the XML from the XDocument, instead of from an XmlDocument.

也许您可以使用SignedXml.LoadXml方法使用XDocument中的XML而不是XmlDocument初始化SignedXml。

#1


2  

Maybe you can use the SignedXml.LoadXml method to initialize a SignedXml with the XML from the XDocument, instead of from an XmlDocument.

也许您可以使用SignedXml.LoadXml方法使用XDocument中的XML而不是XmlDocument初始化SignedXml。