Hi Sam,
If you want to check existence of number and activityName under the specific task then use below condition.
Just paste the below xpath condition in the box i shown you below.
/podPoc/journey/site/task[(@taskName="Asset Returns") and (count(activity/@number) > 0) and (count(activity/@activityName) > 0)]
Use exists operator like below, The condition should be like below.
It works for me, try your side and let me know.
Regards,
Praveen.

