mail-archives/mono-bugs/2004-June/017258.html

140 строки
5.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 60066][Nor] Changed - When 'ValidationType' set to 'Schema', 'System.Xml.XmlValidatingReader' behaves differently compare to MS version
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="017257.html">
<LINK REL="Next" HREF="017259.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 60066][Nor] Changed - When 'ValidationType' set to 'Schema', 'System.Xml.XmlValidatingReader' behaves differently compare to MS version
</H1>
<B>bugzilla-daemon@bugzilla.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
TITLE="[Mono-bugs] [Bug 60066][Nor] Changed - When 'ValidationType' set to 'Schema', 'System.Xml.XmlValidatingReader' behaves differently compare to MS version">bugzilla-daemon@bugzilla.ximian.com
</A><BR>
<I>Sat, 12 Jun 2004 07:34:19 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="017257.html">[Mono-bugs] [Bug 59939][Maj] Changed - OracleConnection:Open throth unhandled exection on Mac OS X 10.3.4
</A></li>
<LI> Next message: <A HREF="017259.html">[Mono-bugs] [Bug 59890][Cos] Changed - Format error when writing to console
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17258">[ date ]</a>
<a href="thread.html#17258">[ thread ]</a>
<a href="subject.html#17258">[ subject ]</a>
<a href="author.html#17258">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by <A HREF="mailto:atsushi@ximian.com.">atsushi@ximian.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=60066">http://bugzilla.ximian.com/show_bug.cgi?id=60066</A>
--- shadow/60066 2004-06-11 19:57:26.000000000 -0400
+++ shadow/60066.tmp.26521 2004-06-12 07:34:19.000000000 -0400
@@ -1,15 +1,15 @@
Bug#: 60066
Product: Mono: Class Libraries
Version: unspecified
OS: All
OS Details:
-Status: NEW
+Status: NEEDINFO
Resolution:
-Severity:
-Priority: Minor
+Severity: Unknown
+Priority: Normal
Component: Sys.XML
AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
ReportedBy: <A HREF="mailto:chengxie@telus.net">chengxie@telus.net</A>
QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
TargetMilestone: ---
URL:
@@ -36,6 +36,57 @@
How often does this happen?
Always.
Additional Information:
Both v1.0.5000.0 and v2.0.3600.0 of system.xml.dll have this issue
+
+------- Additional Comments From <A HREF="mailto:atsushi@ximian.com">atsushi@ximian.com</A> 2004-06-12 07:34 -------
+It does not seem to true. The following example code raises an error
+under MS.NET 1.1.
+
+Would you please provide 1) your example code that does not raise an
+exception under MS.NET, and 2) concrete error stack trace thrown by Mono?
+
+using System;
+using System.Xml;
+
+public class Test
+{
+ public static void Main ()
+ {
+ XmlTextReader xtr = new XmlTextReader (&quot;&lt;root
+xsi:schemaLocation='urn:foo'
+xmlns:xsi='<A HREF="http://www.w3.org/2001/XMLSchema-instance'">http://www.w3.org/2001/XMLSchema-instance'</A> xmlns='foo' /&gt;&quot;,
+XmlNodeType.Document, null);
+ XmlValidatingReader xvr = new XmlValidatingReader (xtr);
+ xvr.ValidationType = ValidationType.Schema;
+ XmlDocument doc = new XmlDocument ();
+ doc.Load (xvr);
+ }
+}
+
+
+./validation.exe
+
+Unhandled Exception: System.Xml.Schema.XmlSchemaException: The
+'foo:root' element is not declared. An error occurred at , (1, 2).
+ at System.Xml.XmlValidatingReader.InternalValidationCallback(Object
+sender, ValidationEventArgs e)
+ at
+System.Xml.Schema.Validator.SendValidationEvent(XmlSchemaException e,
+XmlSeverityType severity)
+ at System.Xml.Schema.Validator.SendValidationEvent(String code,
+String arg)
+ at System.Xml.Schema.Validator.PushElementDecl(String ns, String
+prefix, Int32 depth)
+ at System.Xml.Schema.Validator.ProcessElement()
+ at System.Xml.Schema.Validator.Validate()
+ at System.Xml.Schema.Validator.Validate(ValidationTypevalType)
+ at System.Xml.XmlValidatingReader.ReadWithCollectTextToken()
+ at System.Xml.XmlValidatingReader.Read()
+ at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
+Boolean preserveWhitespace)
+ at System.Xml.XmlDocument.Load(XmlReader reader)
+ at Test.Main()
+
+
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="017257.html">[Mono-bugs] [Bug 59939][Maj] Changed - OracleConnection:Open throth unhandled exection on Mac OS X 10.3.4
</A></li>
<LI> Next message: <A HREF="017259.html">[Mono-bugs] [Bug 59890][Cos] Changed - Format error when writing to console
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17258">[ date ]</a>
<a href="thread.html#17258">[ thread ]</a>
<a href="subject.html#17258">[ subject ]</a>
<a href="author.html#17258">[ author ]</a>
</LI>
</UL>
</body></html>