I need to create XML file in QT, but i dont use QT XML classes to create the XML data, but i create strings manually (which contains XML) and write it into the file, the reason for not using QT XML classes is, i need to preserve the order of attribute but if i use QT XMl classes it writes attribute in random order.
Everything was fine up to now, until i get the html text to be written as tag value in XML. i need to write HTML data as the QT XMl classes writes for e.g "This is <Test data>" should be written as "This is <:Test data>". here i have replaced the ";" with ":" for understanding purpose.
can anyone help me with any function in QString which can detect the XMl and convert it before writing into the file or while writing into file?