resultType

The read-only resultType property of the XPathResult interface represents the type of the result, as defined by the type constants.

MDN Reference