Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2008-09-10 12:23:42 +0400
committerAtsushi Eno <atsushieno@gmail.com>2008-09-10 12:23:42 +0400
commit6bb1b117318a973613d06568a82f54408fd71480 (patch)
treead09614b8acc61090f00b46910ce042e5eae492f /mcs/class/System.XML/Mono.Xml.XPath
parent55ffdd0ba30482addd15b1a6e3e7210396c868d4 (diff)
2008-09-10 Atsushi Enomoto <atsushi@ximian,com>
* XPathEditableDocument.cs : added some overrides. svn path=/trunk/mcs/; revision=112644
Diffstat (limited to 'mcs/class/System.XML/Mono.Xml.XPath')
-rw-r--r--mcs/class/System.XML/Mono.Xml.XPath/ChangeLog4
-rw-r--r--mcs/class/System.XML/Mono.Xml.XPath/XPathEditableDocument.cs60
2 files changed, 64 insertions, 0 deletions
diff --git a/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog b/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
index 241687ec893..b5c6a20bff4 100644
--- a/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
+++ b/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-10 Atsushi Enomoto <atsushi@ximian,com>
+
+ * XPathEditableDocument.cs : added some overrides.
+
2008-06-04 Atsushi Enomoto <atsushi@ximian.com>
* DTMXPathDocumentBuilder2.cs : fixed bug #378239.cs. Merge
diff --git a/mcs/class/System.XML/Mono.Xml.XPath/XPathEditableDocument.cs b/mcs/class/System.XML/Mono.Xml.XPath/XPathEditableDocument.cs
index 549d45a0cec..ef4498f7653 100644
--- a/mcs/class/System.XML/Mono.Xml.XPath/XPathEditableDocument.cs
+++ b/mcs/class/System.XML/Mono.Xml.XPath/XPathEditableDocument.cs
@@ -494,6 +494,18 @@ namespace Mono.Xml.XPath
get { return navigator.Value; }
}
+ public override string XmlLang {
+ get { return navigator.XmlLang; }
+ }
+
+ public override bool HasChildren {
+ get { return navigator.HasChildren; }
+ }
+
+ public override bool HasAttributes {
+ get { return navigator.HasAttributes; }
+ }
+
public override XPathNavigator Clone ()
{
return new XmlDocumentEditableNavigator (this);
@@ -725,6 +737,54 @@ namespace Mono.Xml.XPath
n.RemoveChild (n.FirstChild);
n.InnerText = value;
}
+
+ public override void MoveToRoot ()
+ {
+ navigator.MoveToRoot ();
+ }
+
+ public override bool MoveToNamespace (string name)
+ {
+ return navigator.MoveToNamespace (name);
+ }
+
+ public override bool MoveToFirst ()
+ {
+ return navigator.MoveToFirst ();
+ }
+
+ public override bool MoveToAttribute (string localName, string namespaceURI)
+ {
+ return navigator.MoveToAttribute (localName, namespaceURI);
+ }
+
+ public override bool IsDescendant (XPathNavigator nav)
+ {
+ XmlDocumentEditableNavigator e = nav as XmlDocumentEditableNavigator;
+ if (e != null)
+ return navigator.IsDescendant (e.navigator);
+ else
+ return navigator.IsDescendant (nav);
+ }
+
+ public override string GetNamespace (string name)
+ {
+ return navigator.GetNamespace (name);
+ }
+
+ public override string GetAttribute (string localName, string namespaceURI)
+ {
+ return navigator.GetAttribute (localName, namespaceURI);
+ }
+
+ public override XmlNodeOrder ComparePosition (XPathNavigator nav)
+ {
+ XmlDocumentEditableNavigator e = nav as XmlDocumentEditableNavigator;
+ if (e != null)
+ return navigator.ComparePosition (e.navigator);
+ else
+ return navigator.ComparePosition (nav);
+ }
}
}