Parcourir la source

2004-09-06 Atsushi Enomoto <[email protected]>

	* XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
	  to read more (and might result in an error).

svn path=/trunk/mcs/; revision=33420
Atsushi Eno il y a 21 ans
Parent
commit
c0623bd2ef

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

@@ -1,3 +1,8 @@
+2004-09-06  Atsushi Enomoto  <[email protected]>
+
+	* XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
+	  to read more (and might result in an error).
+
 2004-09-03  Atsushi Enomoto  <[email protected]>
 
 	* XmlTextReader.cs : When Normalization is true, CRLF and CR should

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

@@ -450,7 +450,7 @@ namespace System.Xml
 			case XmlNodeType.EndEntity:
 				break;
 			case XmlNodeType.None:
-				return;	// Do nothing, nor reporting errors.
+				break;	// Do nothing, nor reporting errors.
 			default:
 				throw new XmlException ("Unexpected node " + reader.Name + " of type " + reader.NodeType);
 			}