[MarkLogic Dev General] Is there a simple way to extract the body of an xdmp:http-get without the response header?

Tim Meagher tim at aaom.net
Mon Feb 6 15:02:38 PST 2012


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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20120206/7c6fbbc0/attachment.html 


More information about the General mailing list