relpacing getCurrentXpath() with getMarkedXpath() call