public static boolean looksLikeXml(final String data) {
        // Essentially we are looking for the xml declaration, a pair of opening/closing elements
        // or a self-closing element
        // This is to try and stop it formatting non-xml data as xml when it finds angle brackets in the data
        return XML_ELEMENT_PATTERN.test(data);
    }
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