+2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlReader.cs : Implemented new 2.0 virtual members that used to be
+ abstract in 1.x. Implemented ReadSubtree().
+
2004-07-28 Lluis Sanchez Gual <lluis@novell.com>
* XmlTextReader.cs: Stop parsing when a null character is found.
using System.Security.Policy;
using System.Text;
using System.Xml.Schema; // only required for NET_2_0 (SchemaInfo)
-using Mono.Xml; // only required for NET_2_0 (XmlFilterReader)
+using Mono.Xml; // only required for NET_2_0
#if NET_2_0
using MS.Internal.Xml; // only required for NET_2_0
#endif
public abstract bool HasValue { get; }
- public abstract bool IsDefault { get; }
+#if NET_2_0
+ public virtual bool IsDefault {
+ get { return false; }
+ }
- public abstract bool IsEmptyElement { get; }
+ public virtual bool IsEmptyElement {
+ get { return false; }
+ }
-#if NET_2_0
public virtual string this [int i] {
get { return GetAttribute (i); }
}
get { return GetAttribute (name, namespaceURI); }
}
#else
+ public abstract bool IsDefault { get; }
+
+ public abstract bool IsEmptyElement { get; }
+
public abstract string this [int i] { get; }
public abstract string this [string name] { get; }
public abstract string Value { get; }
+#if NET_2_0
+ public virtual string XmlLang {
+ get { return String.Empty; }
+ }
+
+ public virtual XmlSpace XmlSpace {
+ get { return XmlSpace.None; }
+ }
+#else
public abstract string XmlLang { get; }
public abstract XmlSpace XmlSpace { get; }
+#endif
#endregion
[MonoTODO]
public XmlReader ReadSubtree ()
{
- throw new NotImplementedException ();
+ return new SubtreeXmlReader (this);
}
[MonoTODO]