X = ‘SWI-Prolog 8.0.3 (x86_64-linux): Jun 19 2019, 14:01:15’.
My code looks like this:
:- use_module(library(http/http_client)). :- use_module(library(http/http_open)). :- use_module(library(xpath)). ?- j2(P, //div, X),length(X,XL), show(X). ERROR: Syntax error: Unbalanced operator ERROR: j2(P, //di ERROR: ** here ** ERROR: v, X),length(X,XL), show(X) .
If I wrap it in singles as an atom, it just fails:
?- j2(P, '//div', X),length(X,XL), show(X). false.
I am sure I had this problem a very long time ago but I couldn’t find it on the forums… how on earth do I get to be able to specify a DIV tag!
I was having such fun until this came along!! I am sure it’s simple once you know what you are doing…