的標記元素的值我有以下XML查詢:如何選擇所有給定節點下的標籤沒有得到在XML
<return>
<code>success</code>
<message/>
<deal>
<checksum>203591</checksum>
<documentID>21783</documentID>
<dealStatus>P</dealStatus>
<financing>
<financeType>L</financeType>
<term>32</term>
</financing>
<options>
<disclosureType/>
<frontBackFlag>P</frontBackFlag>
<hardSoftFlag>M</hardSoftFlag>
<optionCode>TO</optionCode>
<optionDescription>QAfhggddate DOCID 219</optionDescription>
<optionOrigin>xxx</optionOrigin>
<optionPrice>
<optionPricingType>INVIICE</optionPricingType>
<price>111.99</price>
</optionPrice>
<optionPrice>
<optionPricingType>RETAIL</optionPricingType>
<price>2.99</price>
</optionPrice>
<optionResidualAmount>3.99</optionResidualAmount>
<residualTableAmount>0.00</residualTableAmount>
<residualTableFlag>N</residualTableFlag>
<satisfiedDate>2012-05-08T00:00:00-06:00</satisfiedDate>
</options>
</deal>
</return>
我需要把一個檢查點,以驗證上述反應只有場在我們的規格中提到。例如。 optionPrice應該只有optionPricingType &價格標籤。所以如何編寫xpath或xqery來獲取optionPrice下的所有標籤而沒有它們的值。
我使用SOAP UI把斷言
success