[Mono-bugs] [Bug 442102] XmlDocument.SelectSingleNode - XPath error

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Dec 18 18:14:57 EST 2008


User miguel at novell.com added comment

Miguel de Icaza <miguel at novell.com> changed:

           What    |Removed                                         |Added
                 CC|                                                |miguel at novell.com

--- Comment #2 from Miguel de Icaza <miguel at novell.com>  2008-12-18 16:14:56 MST ---
With the following program things work in trunk, but I do not know if it works
with 2.2.   This is a full test case, since you did not provide the test case.

using System;
using System.Xml;

class X {

        static void Main ()
                XmlDocument _x = new XmlDocument();
                _x.LoadXml("<?xml version=\"1.0\"?><response>
<query>search</query> <totalresults>28705</totalresults>  <start>1</start>
<end>10</end> <results> <result/> <result/>  </results> </response>");

                string _total =
                Console.WriteLine ("1: " + _total);

                XmlNode total = _x.SelectSingleNode("//totalresults");
                string total2 = total.InnerText;

                Console.WriteLine ("2: " + total2);

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list