Fixed a bug where XML content was always added as string