Throw exception when configuration is not valid XML