Moved XPath API to the core level