Quote Originally Posted by vikuseth View Post
I don't want to write a XML file . The XML file is already there , just i need to format it since its in a single line . I want to break it into tag by tag .
Sure you do. You cannot transform xml A into xml B without writing xml B somwhere. If you don't want to save the result in a permanent file then save it to a QBuffer or QByteArray using QXmlStreamReader/QXmlStreamWriter or DomDocument. The DomDocument option requires the QtXml module but is less effort.