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.
Unfortunately, activation email could not send to your email. Please try again.

Having trouble getting XML to display properly

Thread ID:

Created:

Updated:

Platform:

Replies:

67354 Aug 15,2007 07:46 AM Aug 17,2007 07:21 AM Windows Forms 1
loading
Tags: EditControl
Pete
Asked On August 15, 2007 07:46 AM

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?

Pete

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

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.
http://websamples.syncfusion.com/samples/Edit/F67354/main.htm

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:
http://www2.syncfusion.com/ug/Default.aspx##Essential%20Studio.chm/EditWindows/AutoFormatting.html

Kindly let me know if you need any further assistance.

Best regards,
Golda

CONFIRMATION

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.

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.

;