PDA

View Full Version : Help in reading and writing xml using qt



shah_27
5th January 2013, 04:01
Hi,
I am new to Qt.
I want to know sample running working code for reading and writing XML file using qt?
Can you please send all header files and source files along with .pro project file?

xml should be like generating 1,2,3,4,5 numbers..

alizadeh91
5th January 2013, 06:54
There are lot of examples with qt installation, some dedicated to xml. also you can search in the web. Any way, first of all you need to add xml to pro file: QT += xml.
These:
#include <QtXml>
#include <QDomDocument>
have to be enough to start working with xml. See their documentations there are useful hints to start.

Santosh Reddy
5th January 2013, 08:32
Good place to start XML Examples (http://qt-project.org/doc/qt-5.0/qtdoc/examples-xml.html)