summaryrefslogtreecommitdiff
path: root/tests/auto/qquickxmllistmodel/data/groups.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qquickxmllistmodel/data/groups.qml')
-rw-r--r--tests/auto/qquickxmllistmodel/data/groups.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qquickxmllistmodel/data/groups.qml b/tests/auto/qquickxmllistmodel/data/groups.qml
new file mode 100644
index 0000000..c1b574a
--- /dev/null
+++ b/tests/auto/qquickxmllistmodel/data/groups.qml
@@ -0,0 +1,10 @@
+import QtQuick 2.0
+import QtQuick.XmlListModel 2.0
+
+XmlListModel {
+ source: "groups.xml"
+ query: "//animal[@name='Garfield']/parent::group"
+
+ XmlRole { name: "id"; query: "@id/string()" }
+ XmlRole { name: "name"; query: "@name/string()" }
+}