Add XML header, and free the XMP string.