[Mono-bugs] [Bug 641935] New: Select XmlNodeList from parent XmlNode returns emply list in mono but not .net

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Sep 26 23:52:03 EDT 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=641935#c0


           Summary: Select XmlNodeList from parent XmlNode returns emply
                    list in mono but not .net
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: i586
        OS/Version: openSUSE 11.3
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: jbevain at novell.com
        ReportedBy: thomas.wheeler at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=391576)
 --> (http://bugzilla.novell.com/attachment.cgi?id=391576)
Visual Studio 2008 console project to demonstrate possible bug

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9)
Gecko/20100824 Firefox/3.6.9

I have a weird question here.     I'm trying to do a select on an XmlElement
(from the web/app config) and it seems it's not working when I use
XmlNode.SelectNodes("//configSetting"). I get a blank list of XmlNodeList. But
in .net this works just fine. Is there some formatting issue with selecting
nodes in the mono?    I have attached a project in visual studio 2008 that
includes the xml query code and app.config.   If you test this in .net runtime
you will have no issues, but in mono it just returns an empty list.   Not sure
why.   Thanks for your help!

The project is zipped.

Reproducible: Always

Steps to Reproduce:
1.   Run project in mono runtime
2.   The console app is suppose to return the connection string from the
app.config file but instead doesn't show anything because it's an empty list
3.
Actual Results:  
Empty XmlNodeList

Expected Results:  
XmlNodeList the has 3 entries.

Any chance we could get this fixed for the current stable release?  2.6.7?   I
only ask because I know 2.8 is in development still and I'm trying to release a
product in a stable environment.   If it's a bug at all.  I'm still convinced
that this is some abnormally in mono and I just have to adjust my code to make
it work, i'm just not sure what.  :)

Thank you so much!

-- 
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