Try either .//result
as that will return all "result" descendants of the context node (the node which testCase
points to) or just result
which will return all "result" children of the context node (but won't return grandchildren, great-grandchildren etc.)
Using //result
returns all "result" descendants of the document root which will return every "result" node in the document
Similarly //numberOfIterations
(returns all "numberOfIterations" descendants of the document root) should be replaced by either .//numberOfIterations
or by just numberOfIterations
See the abbreviated syntax guide at http://www.w3.org/TR/xpath/#path-abbrev for more details