Currently, only the `XmlFormatter` will work. Giving a `SpacelessFormatter` will result in a fatal error.
I suggest adding a new interface ( _SitemapIndexFormatter_?) which will be implemented by the previous two formatters and add an instance check on the formatter in the `isSitemapIndexable()` method.