Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Xml query!

    QML and Qt Quick
    1
    2
    931
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      ReshmaS last edited by

      I need to form a query containg both variable and method. I tried to do it but ended up in cardinality error. I dont have any idea on why is it showing such an error. THe xml code is as follows:

      @<CI>

      <VARIABLE Name="Info" Type="eSTRING" Default="Info" Min="0" Max="0" AccMode="RW" AccLevel="USER" Storage="User">
      <UI Group="Variable" Widget="xxx">
      </UI>
      </VARIABLE>

      <METHOD Name="user_login" AccLevel="ALL">
      <PARAM Name="PWHash" Type="eINT32"/>
      <UI Group="Group1" Widget="MethodWidget">
      </UI>
      </METHOD>@

      The Qml query I gave is :

      @
      query: "/CI"
      XmlRole { name: "Name1"; query: "VARIABLE/@Name/string()" }

          XmlRole { name: "Name"; query: "METHOD/@Name/string()" }
      

      @

      Any suggestion on how this could be improved.

      Reshma

      1 Reply Last reply Reply Quote 0
      • R
        ReshmaS last edited by

        Reshma

        1 Reply Last reply Reply Quote 0
        • First post
          Last post