Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Xml query!
Forum Update on Monday, May 27th 2025

Xml query!

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.1k Views
  • 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 Offline
    R Offline
    ReshmaS
    wrote on 15 Oct 2012, 12:28 last edited by
    #1

    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
    0
    • R Offline
      R Offline
      ReshmaS
      wrote on 15 Oct 2012, 13:28 last edited by
      #2

      Reshma

      1 Reply Last reply
      0

      1/2

      15 Oct 2012, 12:28

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved