qtxml

Converting QXmlItem to QtDomElement or similar?

Hello everyone. I'm parsing a fairly complicated XML file of the following structure: <root> ... ... <item> <subitem id="1"/> <text> text1 </text> </item> <item> <subitem id="2"/> <text> text2 </text> </item> ... <item> ... </item> ...</root> It's pretty c...

Converting QDomElement to QString / Container class

Hello, Let's say we have the following XML document: <root> <options> ... </options> <children> <child name="first">12345</child> <child name="second"> <additionalInfo>abcd</additionalInfo> </children> </root> I would like to get a string representation of the "child" nodes and appe...

Writing XML Nodes in QtXML (QDomElement)

Hi, I would like to write Nodes like <name>Peter</name> (with start and end tag) into a QDomDocument. When I create QDomElements and append them as child to a parent element: QDomElement node = doc.createElement("node"); parent.appendChild(node); They are added as <node/> to the parent element. The parent automatically gets ...