diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-06-29 04:40:34 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-06-29 04:40:34 (GMT) |
commit | 3d725363a43d408e1f57292fc54ab2925529fa6e (patch) | |
tree | 981d9e9f3f33aabb3567bbbf99224215dfbfcdd6 /examples/declarative/xmldata | |
parent | 271c4ea851b71ddc346ab5b7d251c61e5e44c424 (diff) | |
download | Qt-3d725363a43d408e1f57292fc54ab2925529fa6e.zip Qt-3d725363a43d408e1f57292fc54ab2925529fa6e.tar.gz Qt-3d725363a43d408e1f57292fc54ab2925529fa6e.tar.bz2 |
Cleanup, fixes, and basic docs for XmlListModel.
Diffstat (limited to 'examples/declarative/xmldata')
-rw-r--r-- | examples/declarative/xmldata/daringfireball.qml | 8 | ||||
-rw-r--r-- | examples/declarative/xmldata/yahoonews.qml | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/examples/declarative/xmldata/daringfireball.qml b/examples/declarative/xmldata/daringfireball.qml index b14dfbf..6f3461e 100644 --- a/examples/declarative/xmldata/daringfireball.qml +++ b/examples/declarative/xmldata/daringfireball.qml @@ -6,17 +6,17 @@ Rect { XmlListModel { id: feedModel source: "http://daringfireball.net/index.xml" - query: "doc($src)/feed/entry" + query: "/feed/entry" namespaceDeclarations: "declare default element namespace 'http://www.w3.org/2005/Atom';" - Role { + XmlRole { name: "title" query: "title/string()" } - Role { + XmlRole { name: "tagline" query: "author/name/string()" } - Role { + XmlRole { name: "content" query: "content/string()" } 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()" } |