move evaluateXPath into the xml module