Sfoglia il codice sorgente

2005-08-31 Chris Toshok <[email protected]>

	* XmlDataSourceNodeDescriptor.cs: implement IXPathNavigable, and
	create our Navigator by calling node.CreateNavigator().


svn path=/trunk/mcs/; revision=49225
Chris Toshok 20 anni fa
parent
commit
01fb7cc119

+ 5 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,8 @@
+2005-08-31  Chris Toshok  <[email protected]>
+
+	* XmlDataSourceNodeDescriptor.cs: implement IXPathNavigable, and
+	create our Navigator by calling node.CreateNavigator().
+
 2005-08-31  Chris Toshok  <[email protected]>
 
 	* XmlDataSource.cs (GetXmlDataDocument): rename this to

+ 8 - 1
mcs/class/System.Web/System.Web.UI.WebControls/XmlDataSourceNodeDescriptor.cs

@@ -33,11 +33,13 @@ using System;
 using System.Collections;
 using System.ComponentModel;
 using System.Xml;
+using System.Xml.XPath;
+using System.Xml.Schema;
 using AC = System.ComponentModel.AttributeCollection;
 
 namespace System.Web.UI.WebControls
 {
-	internal class XmlDataSourceNodeDescriptor: ICustomTypeDescriptor
+	internal class XmlDataSourceNodeDescriptor: ICustomTypeDescriptor, IXPathNavigable
 	{
 		XmlNode node;
 		
@@ -117,6 +119,11 @@ namespace System.Web.UI.WebControls
 				return this;
 			return null;
 		}
+
+		public XPathNavigator CreateNavigator ()
+		{
+			return node.CreateNavigator();
+		}
 	}
 }
 #endif