We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Having trouble getting XML to display properly

Thread ID:





67354 Aug 15,2007 11:46 AM UTC Aug 17,2007 11:21 AM UTC WinForms 1
Tags: EditControl
Asked On August 15, 2007 11:46 AM UTC

I'm loading an XML exe.config file from a database connection and reading it into an XML Document.

Either as XML or the ToString() version (they are all sans CR/LFs) display much of the file in esstial edit without proper formatting as when you open the file in IE where the tags and indenting make the file human readable.

Being very new to these tools I hope there is a way to tell the tool to format the XML for human viewing/editing? Is there?


Golda Rebecal [Syncfusion]
Replied On August 17, 2007 11:21 AM UTC

Hi Pete,

If the file that is loaded in the EditControl is already indented, the EditControl will display the file as such.

Please refer to attached sample that illustrates the same.

If the file that is loaded is not already indented and if you want the EditControl to perform the formatting, you have to write a separate class that implements IAutoFormatter interface and use it in EditControl.

Please refer to the following link for more details:

Kindly let me know if you need any further assistance.

Best regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon