title: Assign XML Signature to a child node of your XMLDocument in .net
body: <p>Is it possible to assign the enveloped Signature as a subchild that is in a different namespace than the document you've signed of you XML Document? </p>
  
  <p>For example: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Message xmlns="http://www.w3.org/2001/XMLSchema-instance" xmlns:a="myNamespace"&gt;
    &lt;Header&gt;
      &lt;head:sgntr xmlns:head="myHeader"&gt;&lt;/head:sgntr&gt;
    &lt;/Header&gt;
    &lt;Data&gt;
    &lt;a:DataEntry&gt;some data&lt;/a:DataEntry&gt;
    &lt;a:DataEntry&gt;some data&lt;/a:DataEntry&gt;
   &lt;/Data&gt;
  &lt;/Message&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Calculate your Signature with the canonicalization method XmlDsigC14NTransform and then place it in the sgntr node. Issue that I face is that 3rd party software cannot validate my XML, if I replace the signature to the last node of the XML Document the 3rd party can validate it successfully. </p>