Link to home
Start Free TrialLog in
Avatar of andyw27
andyw27

asked on

Creating MD5 of XML Document

Hi,

I have some code that produces an XML file.  Is it possible to create the MD5 hash value of it before I save it to disk.

I’d like to do this so that I can include the hash value within the XML document and / or call the file the MD5 value?

TIA
Avatar of Rob
Rob
Flag of Australia image

Sure that doesn't sound like an issue though you couldn't include it in the XML document or it would then be a different MD5 hash.  It's a pretty standard action to find the MD5 hash.  You can use the inbuilt MD5 class of the System.Security.Cryptography namespace.
Full example on it's use here:
http://msdn.microsoft.com/en-us/library/xa627k19.aspx
ASKER CERTIFIED SOLUTION
Avatar of Rob
Rob
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial