I am new to all of this and I cannot seem to solve a problem.
I feel a bit stupid as you have basically given me the solution.
Still, I have having some problems fetching the required data through PHP.

I am trying to get the Created and Modified time stamps.

This is the code I am using:

$downloadmessage = new XML_RPC_Message('last-modified',
array( new XML_RPC_Value('/db/somecollection/anothercollection', 'string'),
new XML_RPC_Value('document.xml', 'string')));
$downloadresponse = $xmlrpcclient->send($downloadmessage);
$downloadval = $downloadresponse->value();
$lastmodified = $downloadval->getval();

$lastmodified seems to be an array with two empty elements.
I do not think it is the connection, as other queries are working.

My apologies for my ignorance and for bothering you all with this basic question.

Can anyone help me?


2009/11/27 Dan McCreary <dan.mccreary@gmail.com>
Hello Daryn,

I assume you are looking for the XQuery functions that access when a resource was created and when a resource was last modified.

Here are the two functions you seek:

xmldb:last-modified($collection, $resource)

xmldb:created($collection, $resource)


Here is an example of how they are used to sync two collections:


- Dan

On Thu, Nov 26, 2009 at 12:11 PM, Daryn Holmes <darynholmes@gmail.com> wrote:

Is there a way to access the created and modified data that is eXists maintains?


Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Exist-development mailing list

Dan McCreary
Semantic Solutions Architect
VOIP: 111@