Revision [1134]
This is an old revision of MarkLogicPut made by DavidLee on 2010-01-14 12:48:20.
Mark Logic Command: put
Puts a document onto a Mark Logic server.Synopsis
put [-c uri|-connect uri] [-uri uri] [file | expression ]Description
Puts a file (or expression) from the local system onto a Mark Logic server.Options
-connect uri -c uri | Use the connection string instead of $MLCONNECT |
-uri uri | Use the specified uri as the uri of the destination document, Otherwise uses the base uri of the file or expression. |
-baseuri base-uri | Use the specifed base uri instead of the base URI from the file or expression |
-r -recurse | Recursively put directories. If any arguemnt is a directory then it is recursed |
-m num -maxfiles num | Send files in batch at must num files in one transaction |
expression | file | The file (or expression , variable, port or url) to put to the Mark Logic server. |
If file is omitted then stdin is used.
Examples
Assuming the prefix "ml" is imported as the marklogic module.Put the file "test.xml" using its full path as the uri
$ ml:put test.xml
Puts the file "test.xml" using the uri "myfile.xml"
$ ml:put -uri myfile.xml test.xml
Puts the dynamic document <foo/> to the ML server using the uri "test.xml"
$ ml:put -uri test.xml <[ <foo/> ]>
Puts the result of an xquery (via stdin) to the Mark Logic server using the uri "test.xml"
$ xquery -q 'myquery.xquery' -i input.xml | ml:put -uri test.xml
Notes
Like most xmlsh commands, anywhere an input file is expected, a file, uri, expression, port, or variable expression may be used instead.MarkLogic Extension Module