Hello, I use the following xml file to store my data in the application. But when I use QXmlStreamReaderto read it into the application, it can only read the first Dish(outer label)
The following is my data.xml
Qt Code:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <dish>
  3. <score>60</score>
  4. <name>11</name>
  5. <family>1</family>
  6. <season>&#26149;</season>
  7. <source>w</source>
  8. <way>wwww</way>
  9. <func>ww</func>
  10. <remark>ww</remark>
  11. </dish>
  12. <dish>
  13. <score>60</score>
  14. <name>12</name>
  15. <family>1</family>
  16. <season>&#20908;</season>
  17. <source>qq</source>
  18. <way>qq</way>
  19. <func>qq</func>
  20. <remark>qq</remark>
  21. </dish>
  22. <dish>
  23. <score>60</score>
  24. <name>2</name>
  25. <family>2</family>
  26. <season>&#31179;</season>
  27. <source>ee</source>
  28. <way>e</way>
  29. <func>e</func>
  30. <remark>e</remark>
  31. </dish>
To copy to clipboard, switch view to plain text mode 

Do I use the wrong formats to stroe data in an xml file.
Thanks in advance!!