Posted 19 years ago
by James Walsh
![Avatar](https://secure.gravatar.com/avatar/8421046e03a50aafaf291b30f27a8ef4.jpg?s=64&d=identicon&r=g)
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