2004-10-08 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Fri, 8 Oct 2004 19:52:14 +0000 (19:52 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Fri, 8 Oct 2004 19:52:14 +0000 (19:52 -0000)
* XPathNavigatorReader.cs : IsDefault considers IXmlSchemaInfo
  (it is anyways not implemented as yet.)

svn path=/trunk/mcs/; revision=34828

mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
mcs/class/System.XML/Mono.Xml.XPath/XPathNavigatorReader.cs

index 898687fa29ba50ced67f46e57b18db52b0016e85..dd92e9d79dc76436d8136833235f9b2773202a48 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-08  Atsushi Enomoto <atsushi@ximian.com>
+
+       * XPathNavigatorReader.cs : IsDefault considers IXmlSchemaInfo
+         (it is anyways not implemented as yet.)
+
 2004-10-05  Atsushi Enomoto <atsushi@ximian.com>
 
        * XPathNavigatorReader.cs : Actually all other kind of nodes than
index c0138ed4e988aed80ee85c567a43c96cf522f0a0..0fa87951095f4dc33704fb1773108ef1d4f9c81d 100755 (executable)
@@ -30,6 +30,7 @@
 using System;\r
 using System.Text;\r
 using System.Xml;\r
+using System.Xml.Schema;\r
 using System.Xml.XPath;\r
 \r
 namespace Mono.Xml.XPath\r
@@ -201,9 +202,11 @@ namespace Mono.Xml.XPath
                        get { return current.IsEmptyElement; }\r
                }\r
 \r
-               // It makes no sense.\r
                public override bool IsDefault {\r
-                       get { return false; }\r
+                       get {\r
+                               IXmlSchemaInfo si = current as IXmlSchemaInfo;\r
+                               return si != null && si.IsDefault;\r
+                       }\r
                }\r
 \r
                // It makes no sense.\r