Use QXmlStreamReader for reading, and XmlStreamWriter for writing