[Mono-bugs] [Bug 38019][Maj] New - "." in an xpath-expression throws an exception

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 13 Feb 2003 15:04:09 -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 scha-bugzilla@schachtzabel.de.

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

--- shadow/38019	Thu Feb 13 15:04:09 2003
+++ shadow/38019.tmp.10604	Thu Feb 13 15:04:09 2003
@@ -0,0 +1,35 @@
+Bug#: 38019
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: scha-bugzilla@schachtzabel.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: "."  in an xpath-expression throws an exception
+
+The execution of the following simple programm throws an exception 
+because of the "." in the xpath expression. However, according to the 
+specification "." is an allowed character of an xml attribute name.
+
+class Class1
+{
+  static void Main(string[] args)
+  {
+    System.Xml.XmlDocument document = new System.Xml.XmlDocument ();
+    document.LoadXml (@"<?xml version = '1.0' encoding = 'ISO-8859-1' ?
+><XMI xmi.version = '1.0'/>");
+    System.Xml.XmlNode node = document.SelectSingleNode 
+("/XMI/@xmi.version");
+  }
+}
+I would be very grateful if you could inform me about any improvement 
+considering the bug I have reported.