Hi,

  In the documentation of the function xdmp:get-request-body()
<http://developer.marklogic.com/pubs/4.1/apidocs/AppServerBuiltins.html#xdmp:get-request-body>,
the last para of the usage notes tells:

    The contents of the document node could be a a text node, a
    document node, or a binary node.

  I guess by "contents" you mean "children".  But this is not
allowed by the data model (see section 6.1 Document Nodes
<http://www.w3.org/TR/xpath-datamodel/#DocumentNode>).

  And indeed, that is not the way the function works: if you send
an XML document through a POST, you get a document node with one
element node.

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/

























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

Reply via email to