I am having the same problem but I can't seem to make any iteration of the above suggested Xpath work with my form.
This works fine '../preceding-sibling::my:group2/my:EndMileage[1]' in a regular form but obviously doesn't work in a browser form.
How would I apply the same suggestion above to my xPath?
I've tried the ...