Hi,
I believe you are saving both docs to the file-system with two separate calls.
I suggest when staring (and even generally) to include the XQuery header:
declare option xdmp:mapping "false";.
Which will not treat a sequence as an instruction to call a function multiple
times. That’s
Hello all,
I am new to Marklogic and would like to learn how to save document nodes to
server. I have a sample code but it always save a
last record has "SP0002". How can I save both records. Thanks in advance.
xquery version "1.0-ml";
declare namespace html =
Hi, Paul:
Syntactically, the XPath expressions
* retrieve a sequence of documents from the database
* extract a sequence of nodes from the sequence of documents (in case 2)
* filter to produce a final sequence by applying the predicate to each item
The engine tries to optimize XPath
___
General mailing list
General@developer.marklogic.com
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general
Thanks Shabana.
That was very helpful.
On Thu, May 10, 2018 at 2:48 PM, shabana khan
wrote:
> Hi Bharath,
>
> You can add document and collection in single step itself. If you look at
> the syntax of xdmp.documentInsert(), you will seen that you can pass
> collection in
Hi Bharath,
You can add document and collection in single step itself. If you look at
the syntax of xdmp.documentInsert(), you will seen that you can pass
collection in options node itself :
declareUpdate();
xdmp.documentInsert(
'document URI',
document,
{ collections : 'name
Thanks, Christopher.
I was able to add document and add this document to its collection in 2
steps.
declareUpdate();
xdmp.documentInsert('", "");
Is this correct?
Thanks,
Bharath
On Wed, May 9, 2018 at 6:08 PM, Christopher Hamlin
wrote:
> The second and third examples