Does marklogic 4 has API that can convert xml node to json format string? 

I tried xdmp:to-json() function, it seems that it only wrap the xml node with 
double quote, didn't convert the xml node to json format.

like:
let $a := <a><b>test</b></a>
return xdmp:to-json($a)

I got result   "<a><b>test</b></a>"


Did I miss anything? Or does that mean I have to convert the xml to a xquery 
map and then call the function?

Helen
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to