http://bugzilla.novell.com/show_bug.cgi?id=523151
Summary: XmlReader.ReadToFollowing will skip past the initial
matching element if the reader is in the initial state
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: ---
Test Case:
using System;
using System.IO;
using System.Xml;
class MainClass
{
public static void Main (string[] args)
{
var xml = @"<t:blarg xmlns:t=""urn:mono-upnp:test""><child
name=""bob""/></t:blarg>";
using (var string_reader = new StringReader (xml)) {
using (var xml_reader = XmlReader.Create (string_reader)) {
Console.WriteLine (xml_reader.ReadToFollowing ("blarg",
"urn:mono-upnp:test"));
}
}
}
}
Expected Result:
"True" - This is what .NET does.
Actual Result:
"False"
--
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 - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs