Retrieves the result of a SXP_query as a nodeset. This can
be subsequently manipulated using SXP_getNodeListItem and
SXP_getNodeListLength. If the result is not of type
nodeset, then XPath does not allow its conversion to a nodeset,
and SXP_ getResultNodeset returns NULL in *resultPtr.