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:
authorPiers Haken <piers@mono-cvs.ximian.com>2002-09-13 06:15:40 +0400
committerPiers Haken <piers@mono-cvs.ximian.com>2002-09-13 06:15:40 +0400
commit234ede86c636f867e9fca5f95051869159e90e7a (patch)
treef5796c430d38e7e33321069b2539bbdcdc47f782 /mcs/class/System.XML/System.Xml
parent643a34dd9ad4af90f4b7fc9927b4b23a6ce75235 (diff)
2002-09-12 Piers Haken <piersh@friksit.com>
* XmlDocumentNavigator.cs: implement MoveToId() svn path=/trunk/mcs/; revision=7423
Diffstat (limited to 'mcs/class/System.XML/System.Xml')
-rw-r--r--mcs/class/System.XML/System.Xml/ChangeLog4
-rw-r--r--mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs15
2 files changed, 17 insertions, 2 deletions
diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog
index 3242f62f1d8..85f0dda994f 100644
--- a/mcs/class/System.XML/System.Xml/ChangeLog
+++ b/mcs/class/System.XML/System.Xml/ChangeLog
@@ -1,3 +1,7 @@
+2002-09-12 Piers Haken <piersh@friksit.com>
+
+ * XmlDocumentNavigator.cs: implement MoveToId()
+
2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* XmlTextWriter.cs: fixed bug #29886.
diff --git a/mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs b/mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs
index 4c763000834..9959bc43292 100644
--- a/mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs
+++ b/mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs
@@ -244,10 +244,21 @@ namespace System.Xml
throw new NotImplementedException ();
}
- [MonoTODO]
public override bool MoveToId (string id)
{
- throw new NotImplementedException ();
+ XmlDocument doc;
+
+ if (node.NodeType == XmlNodeType.Document)
+ doc = (XmlDocument) node;
+ else
+ doc = node.OwnerDocument;
+
+ XmlElement eltNew = doc.GetElementById (id);
+ if (eltNew == null)
+ return false;
+
+ node = eltNew;
+ return true;
}
[MonoTODO]