Changes to introduce CanWriteResult for Xml OutputFormatters.