XML problem that only occurs when debugging

When I step through this code in the debugger, nothing prints out but if I simply allow the program to run it prints out the names of each element in the Xml file.

What's even more confusing is that the information in my watch window does not correspond to what is returned when I mouse over variables.

XmlTextReader reader = new System.Xml.XmlTextReader(strUrl);
try
{
while (reader.Read())
{
switch (reader.NodeType)
{
case XmlNodeType.Element:
Console.Write("" + reader.Name + "\n");
break;
}
}
}

I have .Net Framework 1.1 running on my machine and MS development Environment 2003 Ver 7.1.3088

I'm also open to using alternative XML libraries that would allow me to actively debug and step through code if anyone knows of any.

Any help would be greatly appreciated.
[1115 byte] By [dedzone2k] at [2007-11-19 14:10:20]
# 1 Re: XML problem that only occurs when debugging
not sure why it happens but you could try XmlDocument (DOM) or Xml Serialization (XmlSerializer) technique.
poochi at 2007-11-9 1:52:46 >