* XsdValidatingReader.cs : r68046 didn't really fix the issue.
Enabled the actual fix. and fixed bug #336625.
* XsdValidatingReaderTests.cs : added test for #336625.
* 336625.xsd : new test file.
* Makefile : extra distfiles (336625.xsd).
svn path=/trunk/mcs/; revision=88537
+2007-10-31 Atsushi Enomoto <atsushi@ximian.com>
+
+ * Makefile : extra distfiles (336625.xsd).
+
2007-09-21 Atsushi Enomoto <atsushi@ximian.com>
* Makefile : extra distfiles (325482.xml / 325482.xsl).
Test/XmlFiles/79683.dtd \
Test/XmlFiles/xsd/multi-schemaLocation.xml \
Test/XmlFiles/xsd/datatypesTest.xsd \
+ Test/XmlFiles/xsd/336625.xsd \
Test/XmlFiles/xsd/77687.xsd \
Test/XmlFiles/xsd/77687inc.xsd \
Test/XmlFiles/xsd/78985.xml \
+2007-10-31 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XsdValidatingReader.cs : r68046 didn't really fix the issue.
+ Enabled the actual fix. and fixed bug #336625.
+
2007-07-25 Atsushi Enomoto <atsushi@ximian.com>
* XsdValidatingReader.cs : reject more whitespaces in empty model
private void ExamineAdditionalSchema ()
{
-// if (resolver == null || ValidationType == ValidationType.None)
- if (resolver == null)
+ if (resolver == null || ValidationType == ValidationType.None)
return;
XmlSchema schema = null;
string schemaLocation = reader.GetAttribute ("schemaLocation", XmlSchema.InstanceNamespace);
+2007-10-31 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XsdValidatingReaderTests.cs : added test for #336625.
+
2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
* XmlConvertTest.cs : added test for DateTime roundtrip.
vr.Read ();\r
}\r
\r
+ [Test] // bug #336625\r
+ public void ValidationTypeNoneIgnoreLocatedSchemaErrors ()\r
+ {\r
+ string xml = "<test xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='Test/XmlFiles/xsd/336625.xsd'/>";\r
+ XmlValidatingReader vr = new XmlValidatingReader (\r
+ new XmlTextReader (new StringReader (xml)));\r
+ vr.ValidationType = ValidationType.None;\r
+ while (!vr.EOF)\r
+ vr.Read ();\r
+ }\r
+\r
[Test]\r
public void Bug81360 ()\r
{\r
--- /dev/null
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
+<xs:element name='test' type='testType' />
+<xs:complexType name="testType">
+ <xs:complexContent>
+ <xs:restriction base="nonexistent">
+ </xs:restriction>
+ </xs:complexContent>
+</xs:complexType>
+</xs:schema>
+2007-10-31 Atsushi Enomoto <atsushi@ximian.com>
+
+ * 336625.xsd : new test file.
+
2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
* 82078.xsd : new test file.