The result cannot be represented as a nodeset. Only results of type XPathResultType.NodeSet can be represented as nodesets. ...