Posted 18 years ago
		by Richard Beyer
			
				-
				KBS Leipzig
			
	
Hi,
I've cut my problem to these 3 lines:the xml formatting in the XmlDocument is getting lost when loading it into the Editor with 
_synEditor.Document.Text = xdoc.OuterXml;
it's all in one single line after executing the code...
f.e.:
<root>
<test />
</root>
becomes <root><test /></root>
How can I prevent this?
[Modified at 07/06/2007 08:01 AM]
I've cut my problem to these 3 lines:
    XmlDocument xdoc = new XmlDocument();
    xdoc.LoadXml(_synEditor.Document.Text);
    _synEditor.Document.Text = xdoc.OuterXml;
_synEditor.Document.Text = xdoc.OuterXml;
it's all in one single line after executing the code...
f.e.:
<root>
<test />
</root>
becomes <root><test /></root>
How can I prevent this?
[Modified at 07/06/2007 08:01 AM]