Hi Geert,

        Thnaks for your reply.

        xdmp:document-properties('/path/to/doc') - This function by 
default has only last-modified time, It is not showing who has modified 
the document last. I think it is not stored by marklogic. Is there any way 
to get the last-modified user name.

EG: xdmp:document-properties('test2.xml')

-->  <prop:properties xmlns:prop="http://marklogic.com/xdmp/property";>
  <prop:last-modified>2009-03-27T12:34:22+05:30</prop:last-modified> 
  </prop:properties>


Thnaks & Regards,
Santhosh Rajasekaran



Geert Josten <[email protected]> 
Sent by: [email protected]
04/28/2009 08:19 PM
Please respond to
General Mark Logic Developer Discussion <[email protected]>


To
General Mark Logic Developer Discussion <[email protected]>
cc

Subject
RE: [MarkLogic Dev General] How to get the size of a particular file in 
marklogic server - reg.,






>         1) How to get the size of a particular file in the
> marklogic server.

You could calculate the string-length of the serialized version of the 
file, but that will not match the size it occupies in the MarkLogic 
database. That can not be calculated.

For the string-length, you could try to do something like: 
string-length(xdmp:quote(doc('/path/to/doc')))

>         2) How to get the lastModifiedby , LastModifiedTime
> (metadata)and etc.. of a particular file in the Marklogic server.

Lastmodified info should be part of the document-properties:

xdmp:document-properties('/path/to/doc')

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.



_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

ForwardSourceID:NT0000AC42 
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to