Open mapi33 opened 4 years ago
Same issue :
defiant.search(search, '//2020-05-05[setStart]');
Failed to execute 'evaluate' on 'Document': The string '//2020-05-05[setStart]' is not a valid XPath expression.
{"search": { "2020-05-05": { "period": "weekly", "setStart": "2020-05-01" }, "2020-05-06": { "period": "daily", "setStart": "2020-05-01" } } }
Also tried without Hyphens :
Failed to execute 'evaluate' on 'Document': The string '//2020[setStart]' is not a valid XPath
Taking the following json, defiant.search(json, "//percents/15") returns Evaluation failed: DOMException: Failed to execute 'evaluate' on 'Document': The string '//percents//15' is not a valid XPath expression.
defiant.search(json, "//percents/*[@name='15']) returns {}