Hi all,
I've read through all the xml stuff in the documentation, but I still can't figure out how to add <?xml version='1.0' encoding='UTF-8'?> to my QDomDocument. Has anyone already done this?
Greets,
Weilor
Hi all,
I've read through all the xml stuff in the documentation, but I still can't figure out how to add <?xml version='1.0' encoding='UTF-8'?> to my QDomDocument. Has anyone already done this?
Greets,
Weilor
I'm not exactly sure if there's a better way but maybe this is sufficient for you:
Qt Code:
QDomDocument doc; QDomProcessingInstruction pi = doc.createProcessingInstruction("xml", "version='1.0' encoding='UTF-8'"); doc.appendChild(pi); ...To copy to clipboard, switch view to plain text mode
J-P Nurmi
Perfect! Thanks a lot.
Bookmarks