Преглед на файлове

2003-11-22 Atsushi Enomoto <[email protected]>

	* XmlTextReader.cs : Fixed ReadInnerXml(). This fixes bug #51267.

svn path=/trunk/mcs/; revision=20328
Atsushi Eno преди 22 години
родител
ревизия
ebbc046198
променени са 2 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 4 0
      mcs/class/System.XML/System.Xml/ChangeLog
  2. 2 1
      mcs/class/System.XML/System.Xml/XmlTextReader.cs

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

@@ -1,3 +1,7 @@
+2003-11-22  Atsushi Enomoto  <[email protected]>
+
+	* XmlTextReader.cs : Fixed ReadInnerXml(). This fixes bug #51267.
+
 2003-11-20 Eran Domb <[email protected]>
 
 	* XmlTextWriter.cs (WriteStartAttribute) : Check if the ket already exists in the newAttributeNamespaces table 

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

@@ -649,6 +649,7 @@ namespace System.Xml
 		}
 
 #if NET_1_0
+		StringBuilder innerXmlBuilder;
 		public override string ReadInnerXml ()
 		{
 			if (readState != ReadState.Interactive)
@@ -656,7 +657,7 @@ namespace System.Xml
 
 			switch (NodeType) {
 			case XmlNodeType.Attribute:
-				return value.Substring (1, value.Length - 2);
+				return Value;
 			case XmlNodeType.Element:
 				if (IsEmptyElement)
 					return String.Empty;