[Mono-bugs] [Bug 76582][Wis] Changed - Atom.Net does not work
correctly under Mono
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Oct 31 03:50:27 EST 2005
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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76582
--- shadow/76582 2005-10-28 07:55:10.000000000 -0400
+++ shadow/76582.tmp.17173 2005-10-31 03:50:27.000000000 -0500
@@ -3,13 +3,13 @@
Version: 1.1
OS: unknown
OS Details:
Status: NEW
Resolution:
Severity: Unknown
-Priority: Normal
+Priority: Wishlist
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: schwimmlehrer at hotmail.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
@@ -51,6 +51,43 @@
Self-Contained parsing test using XPath
------- Additional Comments From atsushi at ximian.com 2005-10-28 07:54 -------
As usual, improper BLOCKER. See
http://bugzilla.ximian.com/bug_status.html#priority
+
+------- Additional Comments From atsushi at ximian.com 2005-10-31 03:50 -------
+It is XPathNavigatorReader bug. When an XmlReader is positioned at a
+value node of an attribute, MoveToAttribute(int) should successfully
+move to the indicated attribute node, while XPathNavigatorReader does
+not. At least XmlTextReader does.
+
+Try the example code below, once with XmlTextReader:
+
+ XmlReader reader = new XmlTextReader ("<element>data this <img
+title=\"\" src=\"trouble.jpg\" /></element>",
+ XmlNodeType.Document, null);
+
+and once with XPathNavigatorReader (positioned at "element" element.):
+
+ reader.Read ();
+ reader.Read ();
+ reader.Read ();
+ Console.WriteLine ("{0} {1} {2}",
+ reader.Name, reader.NodeType, reader.Val
+ue);
+ reader.MoveToAttribute (0);
+ Console.WriteLine ("{0} {1}",
+ reader.Name, reader.NodeType);
+ while (reader.ReadAttributeValue ())
+ Console.WriteLine ("value: " + reader.Value);
+ reader.MoveToAttribute (1);
+ Console.WriteLine ("{0} {1}",
+ reader.Name, reader.NodeType);
+ while (reader.ReadAttributeValue ())
+ Console.WriteLine ("value: " + reader.Value);
+
+There used to be similar bug in SgmlReader which does not work fine
+with XmlWriter.WriteAttributes() (which used to be used in
+XmlWriter.WriteNode() and thus used in XmlReader.ReadInnerXml()).
+
+Set as Wishlist since it is XPathNavigatorReader bug.
More information about the mono-bugs
mailing list