[Mono-bugs] [Bug 523151] New: XmlReader.ReadToFollowing will skip past the initial matching element if the reader is in the initial state

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 17 13:19:06 EDT 2009


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: atsushi at ximian.com
        ReportedBy: lunchtimemama at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list