Hi,

Thanks! It works.

Best regards,
Ivan

On 10/21/2010 05:36 PM, Ivan Shcheklein wrote:
Hi Ivan,

    I have the following xquery:
    collection("col_name")[Main/UniqueCode="s145"]
    It returns full contents of the document.
    Please advise how I can get this document's name ("something.xml")?


Use document-uri function:

document-uri(collection("col_name")[Main/UniqueCode="s145"])

It will return name of the document in the database.


Ivan Shcheklein,
Sedna Team

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to