Browse Source

2003-01-24 Gonzalo Paniagua Javier <[email protected]>

	* XmlCharacterData.cs: added XPathNodeType property.

svn path=/trunk/mcs/; revision=10859
Gonzalo Paniagua Javier 23 years ago
parent
commit
5ef88c7ac5

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

@@ -1,6 +1,10 @@
+2003-01-24  Gonzalo Paniagua Javier <[email protected]>
+
+	* XmlCharacterData.cs: added XPathNodeType property.
+
 2003-01-22  Gonzalo Paniagua Javier <[email protected]>
 
-	* System.Xml/XmlTextWriter.cs: throw an exception if WriteEndDocument is
+	* XmlTextWriter.cs: throw an exception if WriteEndDocument is
 	called without a prior call to WriteStartDocument.
 
 2003-01-21  Atsushi Enomoto <[email protected]>

+ 5 - 1
mcs/class/System.XML/System.Xml/XmlCharacterData.cs

@@ -9,6 +9,7 @@
 //
 
 using System;
+using System.Xml.XPath;
 
 namespace System.Xml
 {
@@ -64,6 +65,10 @@ namespace System.Xml
 			}
 		}
 
+		internal override XPathNodeType XPathNodeType {
+			get { return XPathNodeType.Text; }
+		}
+
 		#endregion
 
 		#region Methods
@@ -128,7 +133,6 @@ namespace System.Xml
 		{
 			return data.Substring (offset, count);
 		}
-
 		#endregion
 	}
 }