[Mono-bugs] [Bug 52419][Nor] New - System.Xml.XmlElement.GetElementsByTagName wildcard not supported

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 21 Dec 2003 09:25:48 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by rafim@mainsoft.com.

http://bugzilla.ximian.com/show_bug.cgi?id=52419

--- shadow/52419	2003-12-21 09:25:48.000000000 -0500
+++ shadow/52419.tmp.31418	2003-12-21 09:25:48.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 52419
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rafim@mainsoft.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Xml.XmlElement.GetElementsByTagName wildcard not supported
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+System.Xml.XmlElement.GetElementsByTagName("*") return an empty list.
+The asterik (*) is a special value that matches all tags.
+The GetElementsByTagName("*") should return all nodes 
+with NodeType == XmlNodeType.Element Recursively.
+
+
+Steps to reproduce the problem:
+XmlDocument doc = new XmlDocument();
+     doc.Load("foo.xml");
+                         
+     // Get and display all the elements.
+     XmlElement root = doc.DocumentElement;
+     XmlNodeList elemList = root.GetElementsByTagName("*");
+     for (int i=0; i < elemList.Count; i++)
+     {   
+        Console.WriteLine(elemList[i].InnerXml);
+     }
+
+Actual Results:
+empty XmlNodeList.
+
+Expected Results:
+XmlNodeList with all NodeType == XmlNodeType.Element , Recursively.
+
+How often does this happen? 
+All the time.
+
+Additional Information:
+ms-
+help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemXmlXmlEle
+mentClassGetElementsByTagNameTopic.htm