예제 #1
0
        protected virtual DtdToken GetElement(Char c)
        {
            if (c == Specification.LT && _stream.ContinuesWith("<?xml"))
            {
                _stream.Advance(4);
                return(TextDecl(_stream.Next));
            }
            else if (c != Specification.EOF)
            {
                var s = ScanString(c, Specification.EOF);
                return(new DtdCommentToken {
                    Data = s
                });
            }

            return(DtdToken.EOF);
        }
        protected virtual DtdToken GetElement(Char c)
        {
            if (c == Symbols.LessThan && _stream.ContinuesWith("<?xml"))
            {
                _stream.Advance(4);
                return(TextDecl(_stream.Next));
            }
            else if (c != Symbols.EndOfFile)
            {
                var s = ScanString(c, Symbols.EndOfFile);
                return(new DtdCommentToken {
                    Data = s
                });
            }

            return(DtdToken.EOF);
        }