Use document { $map } to get the XML for the map. With that XML you can call
xdmp:document-insert, etc.
See http://docs.marklogic.com/guide/app-dev/hashtable especially
http://docs.marklogic.com/guide/app-dev/hashtable#id_88528
-- Mike
On 20 Nov 2012, at 09:18 , sini narayanan <[email protected]> wrote:
> Hi,
>
> I have a map to be created as below:
>
> let $map := map:map()
> let $key := map:put($map, "1", "hello")
> let $key := map:put($map, "2", "world")
> return $map
>
> How do I store this as a file in MarkLogic DB?
> What would be the format in which maps are saved ?
>
> I want to access this map from an xqy module which would pass the key as
> input to the map file to get the output.
> Please advice.
>
> Thanks
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general