extractingXPath, adding immutability