const QXmlStreamWriter &xmlWriter -- no point in using a pointer here