I am trying to iterate through an XML document and output the attribute values to a textbox. It almost works fine, but I cannot get it to convert the encoded white space characters to the real thing.
The output looks like:
essful Network Logon:
I have unsuccessfully tried to google it. There should be some easy way of doing it, but I can't find it. Ideas anyone?
I am using C# Visual Studio 2010 .
XmlTextReader reader = new XmlTextReader(textBoxFileName.Text);
for (int i = 0; i < reader.AttributeCount; i++)
richTextBox1.Text = richTextBox1.Text + reader.Name + "=" + reader.Value + Environment.NewLine;