XMLStream reader and writer are nice for reading document from string and writing it back. For editing xml it is better to use QDomDocument, which loads whole XML into memory as its own data structure which you can traverse and modify with QDom classes and methods. Then after modifications you can write it back.
Bookmarks