for $time in doc("forecast.xml")//tabular/time
return <time>
{ $time/@from }
<temperature>
{ $time/temperature/@value, $time/temperature/@unit }
</temperature>
</time>
A nice artical demonstrating the usage of XQuery is published in Qt Quaterly: Checking the Weather with XQuery(http://qt.nokia.com/developer/qtquarterly/checking-the-weather-with-xquery)
Reference:
No comments:
Post a Comment