I’m using: SWI-Prolog version 8.1.0
I want the code to: use library(xpath)
to query xml like xpath(DOM, //foo, Matches)
.
But what I’m getting is:
ERROR: Syntax error: Operator expected
ERROR: xpath([], /
ERROR: ** here **
ERROR: /foo, C ) .
My code looks like this:
?- use_module(library(xpath), [xpath/3]).
true.
?- | xpath([], //foo, C ).
ERROR: Syntax error: Operator expected
ERROR: xpath([], /
ERROR: ** here **
ERROR: /foo, C ) .