Posted 19 years ago
by James Walsh

Hello. I just started using the editor and I love it.
What is the proper way to pass a .NET "XmlDocument" into the editor? I have the editor set up so that I can paste xml into it and the highlighting works. When I call "editor.Document.AppendText(XmlDoc.OuterXml)", the xml is added to the editor, but it loses all indenting and appears on only one line. Is there some other way I need to interact with the editor, or am I misusing "XmlDocument"?
Thanks for any help,
James
What is the proper way to pass a .NET "XmlDocument" into the editor? I have the editor set up so that I can paste xml into it and the highlighting works. When I call "editor.Document.AppendText(XmlDoc.OuterXml)", the xml is added to the editor, but it loses all indenting and appears on only one line. Is there some other way I need to interact with the editor, or am I misusing "XmlDocument"?
Thanks for any help,
James