title: Generating an XML signature in .NET with a XPath Filter 2.0 transform
body: <p>I am trying to generate an <a href="http://www.w3.org/TR/xmldsig-core/" rel="nofollow">XML signature</a> in a .NET application. I also want to make use of a <a href="http://www.w3.org/TR/xmldsig-filter2/" rel="nofollow">XPath Filter 2.0</a> transform in this signature.</p>
  
  <p>The <a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.xml.aspx" rel="nofollow">System.Security.Cryptography.Xml</a> namespace provides classes which implement the XML signatures specification. However, it seems that .NET only supports <a href="http://www.w3.org/TR/xmldsig-core/#sec-XPath" rel="nofollow">XPath filtering as described in the xmldsig-core spec</a> with the <a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.xml.xmldsigxpathtransform.xmldsigxpathtransform.aspx#Y100" rel="nofollow">XmlDsigXPathTransform</a> class. This is not the same as XPath Filter 2.0.</p>
  
  <p>Should I study the XPath Filter 2.0 specification and attempt to implement my own <a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.xml.transform.aspx" rel="nofollow">Transform</a> class? Or is there an easier way to proceed?</p>