import QtQuick 1.0

Rectangle {
    width: 200
    height: 200

     XmlListModel {
         id: xmlModel
         source: "data.xml"
         query: "/dictionary"

         XmlRole { name: "case1"; query: "case1/string()" }
         XmlRole { name: "case2"; query: "case2/number()" } // !!!

         XmlRole { name: "case3"; query: "case3/string()"}
         XmlRole { name: "case4"; query: "case4/number()"}
     }


     ListView {
          width: 180; height: 300
          model: xmlModel
          delegate: Text { text: "case1: " + case1 +
                              "\n case2: " + case2 +
                              "\n case3: " + case3 +
                              "\n case4: " + case4
                         }
      }

}
