print out xquery sequence and exit -


is there way "die" in execution flow in xquery file , output nicely formatted printout of sequence variable?

i'm trying like:

return { fn:error(xs:qname("error"), $xml) } 

but doesn't quite seem work.

thanks!

based on comment (you need debugging) guess looking fn:trace function, described here http://www.xqueryfunctions.com/xq/fn_trace.html

if want abort execution flow , output error in application should in fact use xquery exception handling.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -