Hi!
I would like to create and write into XML file. The file should look like this:
[HTML]
<tcdescription>
<platform type=something>
<id>something</id>
<owner>something</owner>
<requirement>something</requirement>
<type id=something></type>
<style type=something></style>
<module>something</module>
<level id=something></level>
<effort unit=something>something</effort>
<startertimeout>something</startertimeout>
<description>something </description>
</platform>

<platform type=something os=something>
<activated status=something></activated>
<timeout>something</timeout>
<trace use_automatic=something></trace>
<debug use_automatic=something></debug>

<compilation type=something" default=something>
<executable>something</executable>
</compilation>
<compilation type=something>
<executable>something</executable>
</compilation>
</platform>

<platform type=something os=something>
<activated status=something></activated>
<timeout>something</timeout>
<trace use_automatic=something></trace>
<debug use_automatic=something></debug>

<compilation type=something default=something>
<executable>something</executable>
</compilation>
<compilation type="release">
<executable>something</executable>
</compilation>
</platform>
</tcdescription>
[/HTML]
Now, I have successfully created XML file and wrote tcdescription tag with this code:
Qt Code:
  1. QDomDocument doc("XML");
  2. QDomElement root=doc.createElement("tcdescription");
  3. doc.appendChild(root);
To copy to clipboard, switch view to plain text mode 
and wrote it to QTextStream and to qfile. But I don't know how to create "platform" tag. I know that I need to do with QDomelement, but I am kind of stuck, and couldn't find the solution in documentation. Any ideas how to create "platform" tag, as an element child to "tcdescription" tag?