예제 #1
0
 /**
  * Constructs a XMLParser.
  *
  * @param isHtml false if this parser is not going to parse HTML and
  *            whitespace should be submitted as text too.
  * @param charset charset
  */
 public XMLParser(bool isHtml, Encoding charset)
 {
     this.charset    = charset;
     this.controller = new StateController(this, isHtml);
     controller.Unknown();
     memory    = new XMLParserMemory(isHtml);
     listeners = new List <IXMLParserListener>();
 }
예제 #2
0
 public XMLParser(bool isHtml, Encoding charset)
 {
     this.charset = charset;
       this.controller = new StateController(this, isHtml);
       this.controller.Unknown();
       this.memory = new XMLParserMemory();
       this.listeners = (IList<IXMLParserListener>) new List<IXMLParserListener>();
 }