Hi Sini,


Just use either xdmp:document-add-properties or
xdmp:document-set-properties:
http://docs.marklogic.com/xdmp:document-add-properties



You can use that function in the same statement in which you do the
load/insert.



Kind regards,

Geert



*Van:* [email protected] [mailto:
[email protected]] *Namens *sini narayanan
*Verzonden:* donderdag 21 februari 2013 5:29
*Aan:* MarkLogic Developer Discussion
*Onderwerp:* [MarkLogic Dev General] How to get properties set on a document



Hi All,



How do I get the below properties for a document after I load the document.

When I use the xdmp:document-insert/load functions, the properties are not
set to the document.





How do I get these properties.

<prop:properties xmlns:prop="http://marklogic.com/xdmp/property";>

  <Win32CreationTime xmlns="urn:schemas-microsoft-com:">Fri, 15 Feb 2013
16:40:00 GMT</Win32CreationTime>

  <Win32LastAccessTime xmlns="urn:schemas-microsoft-com:">Tue, 19 Feb 2013
12:46:09 GMT</Win32LastAccessTime>

  <Win32FileAttributes
xmlns="urn:schemas-microsoft-com:">00000000</Win32FileAttributes>

  <Win32LastModifiedTime xmlns="urn:schemas-microsoft-com:">Fri, 15 Feb
2013 16:40:00 GMT</Win32LastModifiedTime>

</prop:properties>





Thanks,

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

Reply via email to