C++ (Qt)QXmlStreamWriter xml;/*...*/xml.writeStartElement("a");xml.writeAttribute("href", "#");xml.writeStartElement("img");xml.writeAttribute("src", "image.jpg");xml.writeAttribute("alt", "image");xml.writeEndElement();xml.writeCharacters("This is a link");xml.writeEndElement();xml.writeTextElement("p", "This is a paragraph");
XML<a href="#"> <img src="image.jpg" alt="image"/> This is a link</a><p>This is a paragraph</p>
XML<a href="#"> <img src="image.jpg" alt="image"> This is a link</a><p>This is a paragraph</p>
XML<root24> <group1> <string1 key="comment" value="string1"/> <string2 key="comment" value="string2"/> </group1></root24>
XML<root24> <group1> <string1 key="comment" value="string1"/> <string2 key="comment" value="string2"/> <string3 key="comment" value="string3"/> </group1></root24>
C++ (Qt)QXmlStreamWriter xml;/*...*/xml.writeStartElement("a");xml.writeAttribute("href", "#");xml.writeStartElement("img");...