Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/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
Karate 空手道:XML-CDATA打印不是XML格式_Karate - Fatal编程技术网

Karate 空手道:XML-CDATA打印不是XML格式

Karate 空手道:XML-CDATA打印不是XML格式,karate,Karate,当我打印包含CDATA的SOAP响应时,它包含gt和lt,如下所示。你能帮我把它转换成正确的xml吗?或者你能帮我验证一下响应的一些值吗 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:processRequestResponse xmlns:ns="http://controller.core.xxx.x

当我打印包含CDATA的SOAP响应时,它包含gt和lt,如下所示。你能帮我把它转换成正确的xml吗?或者你能帮我验证一下响应的一些值吗

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <ns:processRequestResponse xmlns:ns="http://controller.core.xxx.xxxxx.xxxx.xxxxxx.com">
         <return>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;xxx:xxxxxxxxxxxx xmlns:xxx="http://xxxxx.com/xxxx/xxxx/xxx/response/xyz/abc"&gt;
   &lt;Header&gt;&lt;destinationId&gt;ABC&lt;/destinationId&gt;

..............
..............
...............

   &lt;/Body&gt;
&lt;/xxx:xxxxxxxxxxxxxResponse&gt;</return>
      </ns:processRequestResponse>
   </soapenv:Body>
</soapenv:Envelope>

?xml version=“1.0”encoding=“UTF-8”?
xxx:XXXXXXXXXXX xmlns:xxx=”http://xxxxx.com/xxxx/xxxx/xxx/response/xyz/abc"
headerdestinationdabc/destinationId
..............
..............
...............
/身体
/xxx:XXXXXXXXXXXX回复

我想一行就可以了,试试这个:

* xml temp = $response//return

我想一行就可以了,试试这个:

* xml temp = $response//return