private void reset() {
        depth = 0;

        elementType = ElementType.CONTENT;
        nextElementType = null;
        lastElementType = null;
        preserveWhitespace = false;
        inAttValue = false;
        lastCharWasSpace = false;
        commentState = CommentState.START;

        inEntity = false;
        output = null;
    }
A class for formatting XML. This class attempts to recognise XML
elements within text and then use this knowledge format the XML
structure.
stroom-core-client-widget/src/main/java/stroom/editor/client/model/XmlFormatter.java