PDA

View Full Version : [Closed] Read an XML file into memory



marvaneke
25th March 2008, 16:11
Hi,

I have data stored in an XML file. The data is similar to a table of two columns and a few lines (about 10 lines). I have read the XML file with the QXmlStreamReader Class.
My question is :
What is it the best way to store this data into the memory of the computer, so that i can read it many times in my program ?

Thanks for the answer.

Regards.

aamer4yu
25th March 2008, 16:34
You can read the XMl file in a QDomDocument object.
Later u can access the contents thru QDomElement class and its functions.

Hope this helps :)

marvaneke
25th March 2008, 16:51
I will look at your suggestion.
Thanks a lot for the (too ;-) ) quick answer.
Regards.