[xquery-talk] fetching value of an namespaced attribute

Florent Georges lists at fgeorges.org
Tue May 6 15:48:46 PDT 2008


mail2champ77-friends at yahoo.co.in wrote:

  Hi

> I wanted to fetch "1210066349529" value. 

>    <entry mk:crawl-timestamp-msec="1210066349529">
>    </entry>

> namespace 'mk' is a problem for me. 

  You have to look for what URI this prefix is bound to in the instance
document (you should see something like xmlns:mk="http://..." on one
ancestor of the entry element.)  Then use this URI and bound a prefix
to it on your XQuery expression:

    declare namespace mk="http://...";
    entry/@mk:crawl-timestamp-msec

  Regards,

--drkm





















__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail 



More information about the talk mailing list