的标记元素的值我有以下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