{ ... QDomDocument doc("type"); QDomProcessingInstruction instr; instr = doc.createProcessingInstruction("xml", "version=\"1.0\" encoding=\"utf-8\""); doc.appendChild(instr); QDomElement root = doc.createElement("root"); ....}
QDomDocument doc;