fixed an Issue with unformed XML Files

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>