Please nominate your Qt Champions for 2021!

QML XmlListView connect 2 Xml files

  • Hi,

    I need to connect 2 xml files to produce an XMLListView. The first xml file (users.xml) contains users and language codes (like eng for english) that they are learning. It looks like this:
    <user language="eng">name1</user>
    <user language="fra">name2</user>
    The second xml file (languages.xml) contains more data on those languages. It looks something like this:
    <language code="eng">English</language>
    <language code="fra">French</language>
    Now in my XmlListView, I would like to show information connecting both these 2 files. In the listview, it would show the user and the name of the language, not its code. But I have no idea how/whether this is possible in QML/Javascript. Can someone help me? Thanks in advance.

Log in to reply