Comment écrire un texte XML à l'intérieur d'un XML ?
QXmlStreamWriter xmlWriter(&file);
(...)
QString xmlCode = "This is a <b>XML</b> code. And should be written as is it";
xmlWriter.writeStartElement("start");
xmlWriter.writeCharacters(xmlCode);
xmlWriter.writeEndElement();
Le résultat devrait être :
<start>
This is a <b>XML</b> code. And should be written as is it
</start>