title: XML encryption and decryption for multiple recipients with X509 certificates
body: <p>I have managed to encrypt and decrypt xml documents using examples on MSDN.
  <a href="http://msdn.microsoft.com/en-us/library/ms229744.aspx">http://msdn.microsoft.com/en-us/library/ms229744.aspx</a> and
  <a href="http://msdn.microsoft.com/en-us/library/ms229943.aspx">http://msdn.microsoft.com/en-us/library/ms229943.aspx</a></p>
  
  <p>This is all done according to the W3C XML encryption standard(XML Enc).</p>
  
  <p>It all works good. My problem is that one xml document is intended for 2 or 3 recipients. I want to encrypt same xml with multiple keys (X509 certificate public key) so that document could be decrypted by multiple recipients.</p>
  
  <p>This is all possible according to the W3C XML encryption standard by using multiple EncryptionKey elements that contain encrypted symmetric session key.</p>
  
  <p>I couldn't find any example on how to achieve this in .Net using standard cryptography classes.</p>
  
  <p>This must be implemented in .NET C#.</p>
  
  <p>Is there a way to do this or code example somewhere?</p>