add method to get first two period elements from root xml document
test against value instead of using same code for each side of test
add method to set xml root