Document parse(String input, String baseUri, ParseErrorList errors) { initialiseParse(input, baseUri, errors); runParser(); // System.out.println("number of errors: "+errors.size()); for (int i = 0; i < errors.size(); i++) System.out.println(errors.get(i)); return doc; }
void reset() { doc.body().removeChildNodes(); reader = new CharacterReader(input, this); this.errors = ParseErrorList.tracking(100); tokeniser = new Tokeniser(reader, errors); while (stack.size() > 2) stack.pollLast(); }
Document parse(String input, String baseUri) { return parse(input, baseUri, ParseErrorList.tracking(100)); }