Revision [1296]

This is an old revision of MarkLogicGet made by DavidLee on 2010-03-09 16:53:34.

 

Mark Logic Command: get

Gets documents from a Mark Logic server

Synopsis

get [options] document [document ...]

Description

Get documents residing on a Mark Logic server and outputs to stdout. If more then one document is specified they are output as a sequence of documents.

Documents are specified by the URI used to store the document

Options

-c,-connect uriUse the connection string instead of $MLCONNECT
-tUse text for serialization instead of XML. Required for non-xml documents
documenturi of the document to get


Example

Assuming the prefix "ml" is imported as the marklogic module, gets the "test.xml" document and prints to stdout

ml:get test.xml


Implementation


get is implemented as an xsh script which simply calls query. The source of the script is

import module ml=org.xmlsh.marklogic 
for uri ; do
   ml:query -q "doc(\"$uri\")"
done








MarkLogic Extension Module

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki