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:
<?xml version="1.0" encoding="UTF-8"?> <dish> <score>60</score> <name>11</name> <family>1</family> <season>春</season> <source>w</source> <way>wwww</way> <func>ww</func> <remark>ww</remark> </dish> <dish> <score>60</score> <name>12</name> <family>1</family> <season>冬</season> <source>qq</source> <way>qq</way> <func>qq</func> <remark>qq</remark> </dish> <dish> <score>60</score> <name>2</name> <family>2</family> <season>秋</season> <source>ee</source> <way>e</way> <func>e</func> <remark>e</remark> </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!!
Bookmarks