Xml query!



  • 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.




Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.