Fix incorrect use of temp. QString object (causing invalid XML content).