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:
authorJason Diamond <injektilo@mono-cvs.ximian.com>2002-08-23 07:26:57 +0400
committerJason Diamond <injektilo@mono-cvs.ximian.com>2002-08-23 07:26:57 +0400
commitf9553b038a2240bbb2e6d081165b7cd485b1d7de (patch)
tree439ccbd684dee5e75857ffe988c841e4a5b405ea /mcs/class/System.XML/System.Xml
parentc987ba086d5d2aadb9cf6e5e3e300234195b1785 (diff)
Correction to previous GetElementsByTagName patch courtesy of Matt Hunter <xrkune@tconl.com>.
svn path=/trunk/mcs/; revision=6920
Diffstat (limited to 'mcs/class/System.XML/System.Xml')
-rw-r--r--mcs/class/System.XML/System.Xml/ChangeLog5
-rw-r--r--mcs/class/System.XML/System.Xml/XmlElement.cs7
2 files changed, 12 insertions, 0 deletions
diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog
index 3f2769fbbdd..bb2e2a8ab7d 100644
--- a/mcs/class/System.XML/System.Xml/ChangeLog
+++ b/mcs/class/System.XML/System.Xml/ChangeLog
@@ -1,5 +1,10 @@
2002-08-22 Jason Diamond <jason@injektilo.org>
+ * XmlElement.cs: Correction to previous GetElementsByTagName patch
+ courtesy of Matt Hunter <xrkune@tconl.com>.
+
+2002-08-22 Jason Diamond <jason@injektilo.org>
+
* XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
qualified GetElementsByTagName courtesy of Matt Hunter
<xrkune@tconl.com>.
diff --git a/mcs/class/System.XML/System.Xml/XmlElement.cs b/mcs/class/System.XML/System.Xml/XmlElement.cs
index be669c5fc74..11802a285ac 100644
--- a/mcs/class/System.XML/System.Xml/XmlElement.cs
+++ b/mcs/class/System.XML/System.Xml/XmlElement.cs
@@ -187,6 +187,13 @@ namespace System.Xml
}
}
+ public virtual XmlNodeList GetElementsByTagName (string localName, string namespaceURI)
+ {
+ ArrayList nodeArrayList = new ArrayList ();
+ this.searchNodesRecursively (this, localName, namespaceURI, nodeArrayList);
+ return new XmlNodeArrayList (nodeArrayList);
+ }
+
[MonoTODO]
public virtual bool HasAttribute (string name)
{