У меня есть ответ в виде XML:
<env:Envelope>
<nv:Header/>
<nv:Body>
<sam:searchResponse>
<sam:searchResponseContent>
<item>
<id>Item 1</id>
<description>Box of candies</description>
<price>1.50</price>
</item>
<item>
<id>Item 2</id>
<description>Box of fruits</description>
<price>1.99</price>
</item>
</sam:searchResponseContent>
</sam:searchResponse>
</nv:Body>
</nv:Envelope>
Коллеги, посоветуйте пожалуйста, как мне правильно описать проверку, что description для "Item 1" - "Box of candies"?
Т.е. я не знаю, как правильно описать путь, по которому находится тег <description>
Я описал так:
"Verifying, that response contains text "Box of candies" in tag <description> for "item 1""
Но мне кажется это недостаточно формальное описание, где искать в ответе этот <description>.