/// <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); }
/// <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; }
/// <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; }
public DtdContainer(DtdContainer parent) : this() { _parent = parent; _parent._children.Add(this); }