> 1. i am getting proper information by writing xquery in mark logic server. > but i am unable to insert new record to that existing xml file > through xquery in mark logic server. > > so, could u please send me how to insert new record through xquery..
It appears to me you are talking about inserting new 'nodes', such as elements into an existing XML document. If that is correct, you are probably interested in the xdmp:node-insert-before, xdmp:node-insert-after, xdmp:node-insert-child, and xdmp:node-replace functions. See http://developer.marklogic.com/pubs/3.2/apidocs/UpdateBuiltins.html Of specific interest would be the ones I mentioned, functions to manipulate nodes (e.g., elements) in a document: xdmp:node-insert-after - Adds an immediately following sibling to a node. xdmp:node-insert-before - Adds an immediately preceding sibling to a node. xdmp:node-insert-child - Adds a new last child to a node xdmp:node-replace - Replaces a node Perhaps also the functions to create/remove documents: xdmp:document-insert - Inserts a new document into the database xdmp:document-delete - Deletes a document from the database xdmp:document-load - Insert/Replace a new/existing document. and functions to deal with the 'metadata' properties of documents (these are external to the document itself, a separate plane of data associated the document via its location URI): xdmp:document-set-properties - Adds a sequence of properties to a document xdmp:document-set-property - Set the property on a document xdmp:document-remove-properties - Removes a sequence of properties from a document You'll probably be interested in reading through the documentation on http://developer.marklogic.com/pubs/3.2/default.xqy -- MarkLogic is sufficently powerful and complex that a good read of the documentation provided will probably save one hours of grief as one explores how to get things done! They also offer a tutorial page which is helpful: http://developer.marklogic.com/howto/tutorials/ Jim - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - James A. Robinson [EMAIL PROTECTED] Stanford University HighWire Press http://highwire.stanford.edu/ +1 650 7237294 (Work) +1 650 7259335 (Fax) _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
