Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过XPath封装引用签名父节点的XML签名_Xml_Xpath_Xml Signature - Fatal编程技术网

通过XPath封装引用签名父节点的XML签名

通过XPath封装引用签名父节点的XML签名,xml,xpath,xml-signature,Xml,Xpath,Xml Signature,我很难找到封装XML签名的正确XPath表达式。 举例如下: <xxx> <bbb> <Signature> <SignedInfo> ... <Reference> <Transforms> <Transform> <XPath>???<XPath>

我很难找到封装XML签名的正确XPath表达式。 举例如下:

<xxx>
 <bbb>
  <Signature>
       <SignedInfo>
         ...
         <Reference>
           <Transforms>
             <Transform>
               <XPath>???<XPath>
             <Transform>
           <Transforms>
           ...
         <Reference>
       <SignedInfo>
       ...
     <Signature>
 </bbb>
 <bbb>
 </bbb>
</xxx>

它从XPath节点开始(在链接中注明),我沿着签名节点走到我的BBB节点,但这看起来非常混乱。

我得到了以下答案:

根本不可能通过XPath表达式引用封装的父元素

您需要使用引用ID

here()/../../../../../..