PDA

View Full Version : read and change xml file



Qiieha
29th July 2011, 13:21
hi all!
I want to read out xml file.
I want read from tag to tag, read out the attributes and then change the attributes.

Now I dont't know if I schould use QDom or another Qt class.
Do you have suggestions??

thank u

qlands
29th July 2011, 14:46
You can read the QT documentation.
But basically each xml node has a previous,child and next node. Is like a tree... you can browse through each node with a while loop checking that previous,child or next are not null. This is the most basic way... However, the XML module of QT has lost of function to accelerate the process of reading, finding nodes and changing values.