Refactored XQueryOperation.