I'm trying to use the file:serialize function to write some content to a file using eXist-db.
Here's the code I'm using, it's just a login and the call of the serialize function. someFunction just returns a node with some content.
let $null := xdb:login("/db", "*", "*"), $someBool := file:serialize(local:someFunction(),"test.txt","")
The very helpful error I'm getting is:
Error found
Message: Error null
I'm using version 1.4.0 on Ubuntu, and I enabled the file module (and built it). What am I missing here?
Thanks!