XML Assertion for single element
I need to validate a value say itemID (used excel datasource ) from xml response but in the response xml a no. of itemID nodes gets generated ,so I have to check with each itemID present in the response.The required itemID in response doesnot everytime generates at the same node so while selecting the element I have given xpath as
/:Envelope/:Body/:Response/:itemID/text(). [/ * given]
I have used value assertion but if I have 5 RuleID in my response 1 will get validated and rest 4 will not match so the validation fails.
How to achieve this assertion ?