I guess `asXml()` methods should be present too and must be tagged as `@deprecated`.