Esempio n. 1
0
 /**
  * Creates a Simple XML parser object.
  * Call Go(BufferedReader) immediately after creation.
  */
 private SimpleXMLParser(ISimpleXMLDocHandler doc, ISimpleXMLDocHandlerComment comment, bool html)
 {
     this.doc     = doc;
     this.comment = comment;
     this.html    = html;
     if (html)
     {
         this.newLineHandler = new HTMLNewLineHandler();
     }
     else
     {
         this.newLineHandler = new NeverNewLineHandler();
     }
     stack = new Stack <int>();
     state = html ? TEXT : UNKNOWN;
 }
 /**
 * Creates a Simple XML parser object.
 * Call Go(BufferedReader) immediately after creation.
 */
 private SimpleXMLParser(ISimpleXMLDocHandler doc, ISimpleXMLDocHandlerComment comment, bool html) {
     this.doc = doc;
     this.comment = comment;
     this.html = html;
     if (html) {
         this.newLineHandler = new HTMLNewLineHandler();
     } else {
         this.newLineHandler = new NeverNewLineHandler();
     }
     stack = new Stack<int>();
     state = html ? TEXT : UNKNOWN;
 }