コード例 #1
0
        protected void OnParseError(ParseErrorEventArgs args)
        {
            if (ParseError != null) {
                ParseError(this, args);
            }

            if (IsParseErrorFatal) {
                //_readState = ReadState.Error;
                throw new XmlException(args.Message, null, args.LineNumber, args.LinePosition);
            }
        }
コード例 #2
0
ファイル: HtmlTextReader.cs プロジェクト: datanowllc/twintsam
        protected virtual void OnParseError(string message)
        {
            ParseErrorEventArgs args = new ParseErrorEventArgs(message, this as IXmlLineInfo);

            if (ParseError != null) {
                ParseError(this, args);
            }
        }
コード例 #3
0
ファイル: HtmlTokenizer.cs プロジェクト: datanowllc/twintsam
        protected virtual void OnParseError(ParseErrorEventArgs args)
        {
            if (ParseError != null) {
                ParseError(this, args);
            }

            if (IsParseErrorFatal) {
                throw new XmlException(args.Message, null, args.LineNumber, args.LinePosition);
            }
        }
コード例 #4
0
ファイル: HtmlReader.cs プロジェクト: datanowllc/twintsam
 private void tokenizer_ParseError(object sender, ParseErrorEventArgs e)
 {
     OnParseError(e);
 }
コード例 #5
0
ファイル: Window1.xaml.cs プロジェクト: datanowllc/twintsam
 void reader_ParseError(object sender, ParseErrorEventArgs e)
 {
     ParseErrors.Items.Add(e);
 }
コード例 #6
0
 private void htmlReader_ParseError(object source, ParseErrorEventArgs args)
 {
     if (parseErrors == 0) {
         Trace.WriteLine("");
         Trace.WriteLine("Actual errors:");
     }
     Trace.WriteLine(String.Format("{0},{1}: {2}", args.LineNumber, args.LinePosition, args.Message));
     parseErrors++;
 }
コード例 #7
0
 private void reader_ParseError(object source, ParseErrorEventArgs args)
 {
     actualOutput.Add(args);
 }
コード例 #8
0
 protected void OnParseError(string message)
 {
     ParseErrorEventArgs args = new ParseErrorEventArgs(message, this);
     OnParseError(args);
 }
コード例 #9
0
 private void input_ParseError(object sender, ParseErrorEventArgs e)
 {
     OnParseError(e);
 }