I use the following code to copy the content of an XML file into a richTextox
XmlDocument xdoc = new XmlDocument();
xdoc.Load(filename);
richTextBox1.Text = xdoc.InnerText;
but the result is a continuous string, for example
<node1>...</node1><node2>...</node2><node3>...</node3>
So how could I send each element to an new line?
In order to have the same result but vertically.
Is it possible to do it the way that I copy the content to the richTexbox?
Not sure if this is what you’re looking for. Been a while since I worked on C#