Browse Source

2005-10-07 Joshua Tauberer <[email protected]>

    * XmlTextReader.cs: SkipTextDeclaration would not accept processing
    instructions that began with the string 'xml', e.g. rejecting
    'xml-stylesheet'.


svn path=/trunk/mcs/; revision=51480
Joshua Tauberer 20 years ago
parent
commit
8a760e94e0

+ 6 - 0
mcs/class/System.XML/System.Xml/ChangeLog

@@ -1,3 +1,9 @@
+2005-10-07  Joshua Tauberer <[email protected]>
+
+	* XmlTextReader.cs: SkipTextDeclaration would not accept processing
+	instructions that began with the string 'xml', e.g. rejecting
+	'xml-stylesheet'.
+
 2005-10-08  Gert Driesen <[email protected]>
 
 	* XmlAttribute.cs: InnerText and InnerXml do not override getters in

+ 1 - 1
mcs/class/System.XML/System.Xml/XmlTextReader.cs

@@ -2006,7 +2006,7 @@ namespace System.Xml
 					ReadChar ();
 			}
 			if (new string (peekChars, 2, 4) != "xml ") {
-				if (new string (peekChars, 2, 3).ToLower (CultureInfo.InvariantCulture) == "xml") {
+				if (new string (peekChars, 2, 4).ToLower (CultureInfo.InvariantCulture) == "xml ") {
 					throw NotWFError ("Processing instruction name must not be character sequence 'X' 'M' 'L' with case insensitivity.");
 				}
 				peekCharsIndex = 0;