I'm trying to quickly prototype a REST server which uses BaseX for persistence using NodeJS.

I'm able to create a session, add a document, query that document, and then close the session.  Fine.

But when I create a query that should return no results, it seems the NodeJS module for BaseX I'm using seems to completely misunderstand the result and never execute the callback.

I looked at the protocol spec http://docs.basex.org/wiki/Server_Protocol but it doesn't seem to give back what is specified here.  I need a sanity check.

The driver sends this:

--
Delving BV, Vasteland 8, Rotterdam
http://www.delving.eu
http://twitter.com/fluxe
skype: beautifulcode
+31629339805