This method should be completely removed, as well as `asXml()`.
This way, adding a new format wont require to add a new method in the `Command` class.