Esempio n. 1
0
  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;
  }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 Document parse(String input, String baseUri) {
   return parse(input, baseUri, ParseErrorList.tracking(100));
 }