Solved: $response[2]
From: [email protected] [mailto:[email protected]] On Behalf Of Tim Meagher Sent: Monday, February 06, 2012 6:03 PM To: 'General MarkLogic Developer Discussion' Subject: [MarkLogic Dev General] Is there a simple way to extract the body of an xdmp:http-get without the response header? I am using xdmp:http-get instead of xdmp:document-get because I want to be able to read the response code. In many cases I know the expected root element of the requested XML document, so it's easy enough to extract it from the http response, but I also need to be able to extract documents without previous knowledge of the document root. How can I go about extracting the XML document from the http get response? Is there a simple way? I'm only requesting one document at a time. Thanks! Tim Meagher
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
