Thanks patrik08. It switched to the QXmlFormatter like in the example... still didn't work. Then I change from putting a QString my QBuffer to a QByteArray... and that worked. I would really think it would work with a QString... but oh well.

Thanks a lot!