[]
You can bind the C1Editor control to a document specified in the Document property. If the document is edited within the C1Editor, the underlying XmlDocument syncs to match it. If the XmlDocument changes in code, these changes are visible in the C1Editor control at run time.
In Visual Studio, click the View menu and select Code to switch to Source view, if necessary.
Add the following statements to your project.
To write code in Visual Basic
Imports C1.Win.C1Editor
Imports System.Xml
To write code in C#
using C1.Win.C1Editor;
using System.Xml;
Add the following code to the Page_Load event to set the Document property.
To write code in Visual Basic
Dim myDoc as new XmlDocument()
C1Editor1.Document = myDoc
To write code in C#
XmlDocument myDoc = new XmlDocument();
c1Editor1.Document = myDoc;