public String format(final String input) {
        // See if the data actually looks like xml before bothering to try to format it as such
        if (looksLikeXml(input)) {
            return doFormat(input);
        } else {
            return input;
        }
    }
Processes some XML and attempts to format it depending on the
parameters supplied. The resulting string is HTML containing multiple
&lt;span&gt; elements to style the various XML fragments.

@param input The input XML to format.
@return A formatted version of the input XML.
stroom-core-client-widget/src/main/java/stroom/editor/client/model/XmlFormatter.java