[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

fetching value of an namespaced attribute

mail2champ77-friends at yahoo.co.in mail2champ77-friends at yahoo.co.in
Wed May 7 22:49:27 PDT 2008


  fetching value of an namespaced attribute
Hi drkm:
    Thanks!

-Mani 

----- Original Message ----
From: Florent Georges <http://x-query.com/mailman/listinfo/talk>
To: http://x-query.com/mailman/listinfo/talk
Sent: Tuesday, 6 May, 2008 6:18:46 PM
Subject: Re:  fetching value of an namespaced attribute

http://x-query.com/mailman/listinfo/talk 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 

_______________________________________________
http://x-query.com/mailman/listinfo/talk
http://x-query.com/mailman/listinfo/talk



      From Chandigarh to Chennai - find friends all over India. Go to http://in.promos.yahoo.com/groups/citygroups/



Purchase Stylus Studio Online Today!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.