* XPathNavigatorReader.cs : IsDefault considers IXmlSchemaInfo
(it is anyways not implemented as yet.)
svn path=/trunk/mcs/; revision=34828
+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
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
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