http://bugzilla.novell.com/show_bug.cgi?id=559459
http://bugzilla.novell.com/show_bug.cgi?id=559459#c0 Summary: Xml read error when using namespaces Classification: Mono Product: Mono: Class Libraries Version: 2.4.x Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Sys.XML AssignedTo: atsu...@ximian.com ReportedBy: avke...@hotmail.com QAContact: mono-bugs@lists.ximian.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.213.1 Safari/532.1 I have an attribute in an xml string with namespaces, where the attribute is not seen by the XmlNodeReader Reproducible: Always Steps to Reproduce: using System; using System.Xml; using System.IO; class MainClass { public static void Main (string[] args) { string xml = "<div xmlns:bind=\"http://namespace.com/tt\" ><bind:value-of select=\"GetDataXml(.)\" /></div>"; XmlDocument xmlDoc = new XmlDocument (); xmlDoc.LoadXml (xml); XmlReader r = new XmlNodeReader (xmlDoc.DocumentElement); while (r.Read ()) { if (r.Name == "bind:value-of") { Console.WriteLine ("xml: " + r.ReadOuterXml()); Console.WriteLine ("select att: " + r.GetAttribute ("select")); if (string.IsNullOrEmpty (r.GetAttribute ("select"))) throw new NotSupportedException ("missing or empty select attribute"); } } } } Actual Results: NotSupportedException is raised, that is, the select attribute is not seen. Output: xml: <bind:value-of select="GetDataXml(.)" xmlns:bind="http://namespace.com/tt" /> select att: Unhandled Exception: System.NotSupportedException: missing or empty select attribute -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs