summaryrefslogtreecommitdiffstats
path: root/examples/declarative/xmldata/yahoonews.qml
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-06-29 04:40:34 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-06-29 04:40:34 (GMT)
commit3d725363a43d408e1f57292fc54ab2925529fa6e (patch)
tree981d9e9f3f33aabb3567bbbf99224215dfbfcdd6 /examples/declarative/xmldata/yahoonews.qml
parent271c4ea851b71ddc346ab5b7d251c61e5e44c424 (diff)
downloadQt-3d725363a43d408e1f57292fc54ab2925529fa6e.zip
Qt-3d725363a43d408e1f57292fc54ab2925529fa6e.tar.gz
Qt-3d725363a43d408e1f57292fc54ab2925529fa6e.tar.bz2
Cleanup, fixes, and basic docs for XmlListModel.
Diffstat (limited to 'examples/declarative/xmldata/yahoonews.qml')
-rw-r--r--examples/declarative/xmldata/yahoonews.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/xmldata/yahoonews.qml b/examples/declarative/xmldata/yahoonews.qml
index d20da99..9d0c956 100644
--- a/examples/declarative/xmldata/yahoonews.qml
+++ b/examples/declarative/xmldata/yahoonews.qml
@@ -9,16 +9,16 @@ Rect {
XmlListModel {
id: feedModel
source: "http://rss.news.yahoo.com/rss/oceania"
- query: "doc($src)/rss/channel/item"
- Role {
+ query: "/rss/channel/item"
+ XmlRole {
name: "title"
query: "title/string()"
}
- Role {
+ XmlRole {
name: "link"
query: "link/string()"
}
- Role {
+ XmlRole {
name: "description"
query: "description/string()"
}