<div dir="ltr"><div><div>Hello,<br><br></div>I have this xml file:<br><br><misc_data><br>    <capture_time>"2001-10-26T21:32:52"</capture_time><br>    <data><br>        <name>UEUE</name><br>
        <diagnostic_request_id>213123</diagnostic_request_id><br>        <onboard_data_definition_id>qeqeqwqw</onboard_data_definition_id><br>        <value>2423423</value><br>    </data><br>
    <data><br>        <name>UEUE</name><br>        <diagnostic_request_id>213123</diagnostic_request_id><br>        <onboard_data_definition_id>qeqeqwqw</onboard_data_definition_id><br>
        <value>2423423</value><br>    </data><br>    <data><br>        <name>UEUE</name><br>        <diagnostic_request_id>213123</diagnostic_request_id><br>        <onboard_data_definition_id>qeqeqwqw</onboard_data_definition_id><br>
        <value>2423423</value><br>    </data><br>    <data><br>        <name>UEUE</name><br>        <diagnostic_request_id>213123</diagnostic_request_id><br>        <onboard_data_definition_id>qeqeqwqw</onboard_data_definition_id><br>
        <value>2423423</value><br>    </data><br></div>    <mumu>asdas </mumu><br><div></misc_data><br><br></div><div>and i want to sign :"capture_time" node and all "data" nodes.<br>
<br></div><div>tried adding this to template:<br><Signature xmlns="<a href="http://www.w3.org/2000/09/xmldsig#">http://www.w3.org/2000/09/xmldsig#</a>"><br>      <SignedInfo><br>          <CanonicalizationMethod Algorithm=<br>
           "<a href="http://www.w3.org/TR/2001/REC-xml-c14n-20010315">http://www.w3.org/TR/2001/REC-xml-c14n-20010315</a>"/><br>          <SignatureMethod Algorithm=<br>           "<a href="http://www.w3.org/2000/09/xmldsig#rsa-sha1">http://www.w3.org/2000/09/xmldsig#rsa-sha1</a>"/><br>
          <Reference><br>          <Transforms><br>              <Transform Algorithm=<br>              "<a href="http://www.w3.org/2000/09/xmldsig#enveloped-signature">http://www.w3.org/2000/09/xmldsig#enveloped-signature</a>" /><br>
              <Transform Algorithm=<br>              "<a href="http://www.w3.org/TR/1999/REC-xpath-19991116">http://www.w3.org/TR/1999/REC-xpath-19991116</a>"><br>                  <XPath>ancestor::capture_time</XPath><br>
              </Transform><br>          </Transforms><br>          <DigestMethod Algorithm=<br>          "<a href="http://www.w3.org/2000/09/xmldsig#sha1">http://www.w3.org/2000/09/xmldsig#sha1</a>"/><br>
          <DigestValue></DigestValue><br>          </Reference><br>          <Reference><br>          <Transforms><br>              <Transform Algorithm=<br>              "<a href="http://www.w3.org/2000/09/xmldsig#enveloped-signature">http://www.w3.org/2000/09/xmldsig#enveloped-signature</a>" /><br>
              <Transform Algorithm=<br>              "<a href="http://www.w3.org/TR/1999/REC-xpath-19991116">http://www.w3.org/TR/1999/REC-xpath-19991116</a>"><br>                  <XPath>select /misc_data/data</XPath><br>
              </Transform><br>          </Transforms><br>          <DigestMethod Algorithm=<br>          "<a href="http://www.w3.org/2000/09/xmldsig#sha1">http://www.w3.org/2000/09/xmldsig#sha1</a>"/><br>
          <DigestValue></DigestValue><br>          </Reference><br>      </SignedInfo><br>      <SignatureValue /><br>      <KeyInfo><br>          <KeyValue /><br>      </KeyInfo><br>
<br><br></div><div>I not sure if do thing right here and also that the signed document is correct.<br><br><br></div><div>Thanks,<br></div><div>Ionut<br></div></div>