Hi,
I have two classes:
class A
{
public:
int m_x;
string m_s;
};
class B
{
public:
A m_a;
};
class A
{
public:
int m_x;
string m_s;
};
class B
{
public:
A m_a;
};
To copy to clipboard, switch view to plain text mode
Now I would like to create a XML structure, like this one:
<B>
<A>
<x>12</x>
<y>55</y>
</A>
</B>
<B>
<A>
<x>12</x>
<y>55</y>
</A>
</B>
To copy to clipboard, switch view to plain text mode
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.
Bookmarks