Relative Content

Tag Archive for c#.net-corexml-parsing

C# – XmlReader freezes execution of the program (but not the program itself, it still responds to user input!)

HttpClient hpClient = new(); XmlDocument xmDoc = new(); XmlReader xmRead = XmlReader.Create(url); // string response = await hpClient.GetStringAsync(url); string nodeOuterText; // used later in the code Point coords = new(10, 70); lblMinorErrorReporter.Text = MinorErrorStrings[10]; xmRead.MoveToContent(); xmRead.Read(); xmDoc.Load(xmRead); MessageBox.Show(“Test”); I’ve put a VS breakpoint on xmRead.MoveToContent(). when it hits, it’s expected this go to xmRead.Read(), i.e. […]