summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlxmllistmodel/data/model2.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlxmllistmodel/data/model2.qml')
-rw-r--r--tests/auto/declarative/qmlxmllistmodel/data/model2.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlxmllistmodel/data/model2.qml b/tests/auto/declarative/qmlxmllistmodel/data/model2.qml
new file mode 100644
index 0000000..140e0ad
--- /dev/null
+++ b/tests/auto/declarative/qmlxmllistmodel/data/model2.qml
@@ -0,0 +1,11 @@
+import Qt 4.6
+
+XmlListModel {
+ source: "model.xml"
+ query: "/Pets/Pet"
+ XmlRole { name: "name"; query: "name/string()" }
+ XmlRole { name: "type"; query: "type/string()" }
+ XmlRole { name: "age"; query: "age/number()" }
+ XmlRole { name: "size"; query: "size/string()" }
+ XmlRole { name: "tricks"; query: "tricks/string()" }
+}