Hi,  probably something simple again..

 

I'm using string-join() to apply a header to some results in csv format:

 

string-join(($hdr, $body), '')

 

Now I want to save the results to a file so tried this:

 

let $r := string-join(($hdr, $body), '')
return
xdmp:save('c:\export.csv', $r, <options
xmlns="xdmp:save"><method>text</method></options>)

but $r is not a node:  XDMP-ARGTYPE: (err:XPTY0004)
xdmp:save("c:\export.csv", "Package&#9;Report Location&#9;Report
Name&#9;Report Desc&#9;Repo...", <options
xmlns="xdmp:save"><method>text</method></options>) -- arg2 is not of type
node()

 

xdmp:unquote() didn't work.  Thanks in advance.

 

Gary

 

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

Reply via email to