return array of elements if evaluate resultType is 'nodes'