[Mono-bugs] [Bug 347768] XmlReader.ReadToNextSibling hangs when no next sibling exists
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jan 24 18:29:12 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=347768
User augustorighetto at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=347768#c4
Augusto Righetto <augustorighetto at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |augustorighetto at gmail.com
Status|NEEDINFO |ASSIGNED
Info Provider|srfcanada at hotmail.com |
Priority|P5 - None |P3 - Medium
--- Comment #4 from Augusto Righetto <augustorighetto at gmail.com> 2008-01-24 16:29:11 MST ---
I have the same problem.
Here is the files for reproduce this bug.
This source code works in MS .Net but hangs in Mono.
-----------------
test.xml
<?xml version="1.0" encoding="utf-8"?>
<books>
<book>
<name>Happy C Sharp</name>
</book>
</books>
----------------
using System;
using System.Xml;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
XmlReader reader =
XmlReader.Create("/home/augusto/bugMono/test.xml");
reader.MoveToContent();
Console.WriteLine(reader.Name.ToString());
while (reader.Read())
{
// BUG 347768: Here bug happens
reader.ReadToNextSibling("book");
Console.WriteLine(reader.Name.ToString());
}
Console.WriteLine("Press any key.");
Console.ReadKey();
}
}
}
--
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