Read regions, origins & destinations by Xpath

Instead of manually adding all of the origins and destinations I want to
just do a loop through the number of objects using Xpath. In this step
I've identified the correct Xpath for each of the objects - now just to
find a way to loop and increment through them.