Replaced all occurrences of XPathType with ItemPathType.