Editing an open file directly as Xml

SyntaxEditor for Windows Forms Forum

Posted 16 years ago by Michael Giovinazzo
Version: 4.0.0275
If I have a file loaded in syntax editor as an XML Document, is there anyway to directly edit the text by using an xml object? (where I can select elements and attributes)

I am editing the text/xml outside of the syntax editor and want to easily update the contents of the editor without changing positioning, outlining or any other visual aspects that get lost when you reset the entire text.

If it's not possible, what is the easiest way to accomplish this?


Comments (1)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
We don't interact (as far as updates) directly with XML documents. If you mean you want to be able to programmatically update portions of the document, you can do that with Document.ReplaceText, InsertText, DeleteText, etc. One of the options you can pass those methods is to RetainSelection, which I believe will not change selection to the location of the edit.

Actipro Software Support

The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.