Exemplo 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;
 }
Exemplo n.º 2
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;
 }