pran
12th February 2013, 10:49
My application maintains a struct like this (with more nesting)
typedef struct
{
double length;
double space;
double tOffset;
double sOffset;
QString rule;
}ODLD;
typedef struct
{
QString name;
double width;
ODLD odLD;
}ODRMT;
typedef struct
{
double sOffset;
QString type;
QString weight;
QString color;
double width;
QString change;
QList<ODRMT*> odRMT;
}ODRMR;
Now I want to write this data into an XML file. Goolge-ing for this did not help me much with samples/examples. On the lookout for a sample code from where I can start of and go on to build the complete xml file.
typedef struct
{
double length;
double space;
double tOffset;
double sOffset;
QString rule;
}ODLD;
typedef struct
{
QString name;
double width;
ODLD odLD;
}ODRMT;
typedef struct
{
double sOffset;
QString type;
QString weight;
QString color;
double width;
QString change;
QList<ODRMT*> odRMT;
}ODRMR;
Now I want to write this data into an XML file. Goolge-ing for this did not help me much with samples/examples. On the lookout for a sample code from where I can start of and go on to build the complete xml file.