fix for broken getXPath function (no longer returning #document in path)
rebuilt