StarShaper
22nd June 2012, 06:28
Hi,
I have two classes:
class A
{
public:
int m_x;
string m_s;
};
class B
{
public:
A m_a;
};
Now I would like to create a XML structure, like this one:
<B>
<A>
<x>12</x>
<y>55</y>
</A>
</B>
What is the best way to achieve this with Qt?
It would be necessary to read the XML and convert it to the object model later. :)
I have two classes:
class A
{
public:
int m_x;
string m_s;
};
class B
{
public:
A m_a;
};
Now I would like to create a XML structure, like this one:
<B>
<A>
<x>12</x>
<y>55</y>
</A>
</B>
What is the best way to achieve this with Qt?
It would be necessary to read the XML and convert it to the object model later. :)