[MarkLogic Dev General] xdmp:get-request-body(); as document-node

Erik Zander Erik.Zander at studentlitteratur.se
Wed Feb 15 00:54:37 PST 2017


Hi All,

I hope you can help me here as my memory won't cooperate :)

I'm using
declare variable $xmlBody := xdmp:get-request-body();    <= input here is a post with content-type application/xml

and later in the code I check that it's a document node but that check fails

How can I convert the $xmlBody into a document node? Document{$xmlbody} didn't do the trick.

Regards
Erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20170215/f2c941f8/attachment.html 


More information about the General mailing list