From: Matteo C. <cat...@gm...> - 2012-03-29 08:48:33
|
Hi peter, thank you for the reply (and forgive me for the double mail). What's that language? XQuery? I had already seen you can retrieve some infos using other apis but I need to use xml:db api (http://xmldb-org.sourceforge.net/) and didn't found anything on the eXist documentation at http://exist-db.org/exist/devguide_xmldb.xml Matteo On Thu, Mar 29, 2012 at 12:58 AM, Hungerburg <pc...@my...> wrote: > >> Am 2012-03-28 23:52, schrieb Matteo Catena: >> > Hi everybody, >> > i'm new to eXist db. I wonder: is there a way to access infos like name, >> > creation date, modification date, etc of a resource (an xml document >> into a >> > collection) via xml:db api? >> > I've searched the documentation and googled but i didn't find an >> answer. I >> > saw on your website that is possible to gather some of these infos using >> > xml-rpc api; isn't there an analogous way with the xml:db api? >> >> In one of my scripts I do like this, it looks suspiciously similar to >> what you want, except for the colon placement: >> >> let $mdate := >> if (xmldb:collection-available($collection)) then >> xmldb:last-modified($collection, concat($basename, ".xml")) >> else >> '' >> I am quite sure, that I found out how to get that information from the >> public eXist documentation. >> >> -- >> peter >> >> >> ------------------------------------------------------------------------------ >> This SF email is sponsosred by: >> Try Windows Azure free for 90 days Click Here >> http://p.sf.net/sfu/sfd2d-msazure >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > > |