Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to read multiple XML using QML?
Forum Update on Monday, May 27th 2025

How to read multiple XML using QML?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 380 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.
  • H Offline
    H Offline
    harshal
    wrote on 10 Dec 2015, 08:38 last edited by harshal 12 Oct 2015, 08:38
    #1

    Hello all,

    I have 2 xml file "EmployList.xml" and "Employ<Name>.xml". I wrote a program to read salary of employ which is present into Employ<name>.xml using xmlListModel in QML. But now i want salary of all employ. So in this case I have to get Employ name from EmployList.xml and using that Employ name read that particular Employ<name>.xml to get salary.

    So please help me for same,

    Thank you.

    EmployList.xml :
    <employ_List>
    <employname>N1</employname>
    <employname>N2</employname>
    <employname>N3</employname>
    <employname>N4</employname>
    <employname>N5</employname>
    <employname>N6</employname>
    </employ_List>

    Employ<name>.xml :::: EmployN1.xml
    <detail>
    <employ id="2"/>
    <salary>1000</salary>
    </detail>

    //Note : I have Multiple xml file like EmployN1.xml, ....N2.xml etc.

    OutPut :
    N1 : 1000
    N2 : 2000
    N1 = 1000

    1 Reply Last reply
    0

    1/1

    10 Dec 2015, 08:38

    • Login

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