[Mono-bugs] [Bug 478506] New: XmlReader.ReadToFollowing (string, string) is broken - namespace not taken into account

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Feb 22 12:17:52 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=478506


           Summary: XmlReader.ReadToFollowing (string, string) is broken -
                    namespace not taken into account
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          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 Test
{
    const string xml = @"<?xml version=""1.0""?><foo:bar
xmlns:foo=""http://foo.org"">Hello World!</foo:bar>";

    public static void Main(string[] args)
    {
        var reader = new StringReader (xml);
        var xr = XmlReader.Create (reader);
        Console.WriteLine (xr.ReadToFollowing ("bar", "http://foo.org"));
    }
}

Expected Result:
Should print "True"

Actual Result:
Prints "False"

-- 
Configure bugmail: https://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