/// <summary>
 /// Creates a new DTD tokenizer with the given source and container.
 /// </summary>
 /// <param name="container">The container to use.</param>
 /// <param name="src">The source to inspect.</param>
 public DtdPlainTokenizer(DtdContainer container, TextSource src)
     : base(src)
 {
     _container = container;
     _external  = true;
     _stream    = new IntermediateStream(src);
 }
예제 #2
0
 /// <summary>
 /// Creates a new DTD tokenizer with the given source and container.
 /// </summary>
 /// <param name="container">The container to use.</param>
 /// <param name="src">The source to inspect.</param>
 public DtdTokenizer(DtdContainer container, TextSource src)
     : base(container, src)
 {
     _includes  = 0;
     IsExternal = true;
 }
예제 #3
0
 /// <summary>
 /// Creates a new Dtd parser that uses the given container
 /// as the result for parsing the given source.
 /// </summary>
 /// <param name="container">The container to use.</param>
 /// <param name="source">The source to parse.</param>
 public DtdParser(DtdContainer container, TextSource source)
 {
     _tokenizer = new DtdTokenizer(container, source);
     _result    = container;
     _src       = source;
 }
예제 #4
0
 public DtdContainer(DtdContainer parent)
     : this()
 {
     _parent = parent;
     _parent._children.Add(this);
 }