summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2039a67)
* XmlReader.cs : Implemented new 2.0 virtual members that used to be
abstract in 1.x. Implemented ReadSubtree().
svn path=/trunk/mcs/; revision=31602
+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.
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 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
#if NET_2_0
using MS.Internal.Xml; // only required for NET_2_0
#endif
public abstract bool HasValue { get; }
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; }
+ }
public virtual string this [int i] {
get { return GetAttribute (i); }
}
public virtual string this [int i] {
get { return GetAttribute (i); }
}
get { return GetAttribute (name, namespaceURI); }
}
#else
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 this [int i] { get; }
public abstract string this [string name] { get; }
public abstract string Value { 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; }
public abstract string XmlLang { get; }
public abstract XmlSpace XmlSpace { get; }
[MonoTODO]
public XmlReader ReadSubtree ()
{
[MonoTODO]
public XmlReader ReadSubtree ()
{
- throw new NotImplementedException ();
+ return new SubtreeXmlReader (this);