dedzone2k
October 6th, 2005, 08:46 PM
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.
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.