Ejemplo n.º 1
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 DtdPlainTokenizer(DtdContainer container, SourceManager src)
     : base(src)
 {
     _container = container;
     _external  = true;
     _stream    = new IntermediateStream(src);
 }
Ejemplo n.º 2
0
 public Bin(DtdContainer container, Boolean unique, Func <T, String> select)
 {
     _unique    = unique;
     _container = container;
     _list      = new List <T>();
     _select    = select;
 }
Ejemplo n.º 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, SourceManager source)
        {
            _tokenizer = new DtdTokenizer(container, source);
            _result    = container;
            _src       = source;

            _tokenizer.ErrorOccurred += (s, ev) =>
            {
                if (ErrorOccurred != null)
                {
                    ErrorOccurred(this, ev);
                }
            };
        }
Ejemplo n.º 4
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, SourceManager src)
     : base(container, src)
 {
     _includes  = 0;
     IsExternal = true;
 }
Ejemplo n.º 5
0
 public DtdContainer(DtdContainer parent)
     : this()
 {
     _parent = parent;
     _parent._children.Add(this);
 }