temporal.nodeInsertChild( temporal-collection as String, parent as Node, new as Node, [temporal-doc-uri as String] ) as null
Adds a new last child to a node in a temporal document. For XML documents, only element nodes and document nodes can have children. For JSON documents, object nodes and array nodes can have children. Element nodes, object nodes, and array nodes cannot have document node children. Document nodes cannot have multiple roots. On-the-fly constructed nodes cannot be updated. The parameters must specify individual nodes and not node sets.
Parameters | |
---|---|
temporal-collection | The URI for the protected temporal collection in which the document is to belong. This must have been previously created by the temporal:collectionCreate function. All versions of the temporal document will be associated with this temporal collection. |
parent | The parent node which will have a new child node. |
new | The new child node to be inserted. |
temporal-doc-uri | The URI of the temporal document to be updated. |
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.