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?
+2
A:
Maybe you can use the SignedXml.LoadXml method to initialize a SignedXml with the XML from the XDocument, instead of from an XmlDocument.
Sjoerd
2010-07-20 19:10:48
It wants an XmlElement only. I guess it's not possible?
Nate Zaugg
2010-07-20 19:58:26
I agree. I must have been mistaken. It seems the SignedXml class only works with either XmlDocument or XmlElement. Of course, you can implement your own class to sign XDocuments, but it may be easier to convert it to an XmlDocument.
Sjoerd
2010-07-21 12:04:50