[Mono-bugs] [Bug 336495] XmlDocument.Load behaving different than MS implementation ( Schema validation)
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Oct 29 07:40:59 EDT 2007
https://bugzilla.novell.com/show_bug.cgi?id=336495#c2
Atsushi Enomoto <atsushi at ximian.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
Info Provider| |fbergman at u.washington.edu
--- Comment #2 from Atsushi Enomoto <atsushi at ximian.com> 2007-10-29 05:40:59 MST ---
Since no further example case is provided, I've written my own example. It
however disagrees your bug report.
----
$ cat 336495.cs
using System;
using System.Xml;
public class Test
{
public static void Main ()
{
string xml = @"<root xsi:noNamespaceSchemaLocation='336495.xsd'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>nonnumber</root>";
string xml2 = @"<root
xsi:noNamespaceSchemaLocation='nosuchfile.xsd'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>nonnumber</root>";
XmlDocument doc = new XmlDocument ();
doc.LoadXml (xml);
doc.LoadXml (xml2);
// XmlTextReader tr = new XmlTextReader (new XmlTextReader
(xml, XmlNodeType.Document, null));
// XmlValidatingReader vr = new XmlValidatingReader (tr);
// while (!vr.EOF)
// vr.Read ();
}
}
$ cat 336495.xsd
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:element name='root' type='xs:int' />
</xs:schema>
----
(Here "xml" points to an invalid schema and "xml2" points to nonexistent
schema.)
Setting needinfo, and will close it as invalid in case no further example is
provided.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list