private SimpleXMLParser(final SimpleXMLDocHandler doc, final SimpleXMLDocHandlerComment comment, final boolean html) {
this.doc = doc;
this.comment = comment;
this.html = html;
if (html) {
this.newLineHandler = new HTMLNewLineHandler();
} else {
this.newLineHandler = new NeverNewLineHandler();
}
stack = new Stack<Integer>();
state = html ? TEXT : UNKNOWN;