Hi Thufir,
That's really the end goal: just running XQuery against html.
In that case, you can simply use "new XQuery(...).execute(ctx)". Any query that works in the GUI can be supplied as argument.
The only query I can get working against the html is for the query string to be "text()" or perhaps "/text()" which then returns all the html. Rather, I'd want to traverse to pick out specific parts.
If you want to process the single results of your query, you should have a look at the examples [1], specifically [2].
Best, Christian
[1] http://docs.basex.org/wiki/Java_Examples [2] https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/or...