Hi Gayathri, The xdmp:document-load reads documents from the filesystem ($location), and directly inserts it into the current database. The uri at which it is stored is calculated automatically, unless you provide a uri through the options. For examples see here:
http://developer.marklogic.com/pubs/4.1/apidocs/UpdateBuiltins.html#xdmp:document-load The xdmp:document-insert inserts an in-memory node structure ($root) and inserts that at the given uri ($uri) in the current database. For examples see here: http://developer.marklogic.com/pubs/4.1/apidocs/UpdateBuiltins.html#xdmp:document-insert Kind regards, Geert > Drs. G.P.H. Josten Consultant http://www.daidalos.nl/ Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 http://www.daidalos.nl/ KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: [email protected] > [mailto:[email protected]] On Behalf Of > Modulus Solutions-Inc > Sent: vrijdag 29 januari 2010 20:49 > To: General Mark Logic Developer Discussion > Subject: [MarkLogic Dev General] Difference between > xdmp:document-load and xdmp:document-insert > > Can any one explain the differences, if any, between > xdmp:document-load and xdmp:document-insert > > Thanks, Gayathri > _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
