This function uses XPath to get the entry based on its ID. Ideally we would also use XPath to find the offset of that node and therefore cache it, but the necessary XPath support isn't coming until at least PHP5.1.
Once it is available, I will try to implement support for it for those users on a capable platform.
Parameters: