XML export bugfix

Signed-off-by: Matthias Stevens <matthias.stevens@gmail.com>