By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,107 Members | 904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,107 IT Pros & Developers. It's quick & easy.

how display xml document in TextBox with its original format

P: 1
Hi, I am a learner for C# and .Net.

I load XML document as follows:

<?xml version="1.0" encoding="UTF-8"?>

I get the XML string by using XmlDocument's innerXml attribute. I have set "Multiline" to "true". TextBox can be displayed multiline

text,but it was displayed in disorder format.

Now what should I do when it show in the TextBox the text will be displayed in the original xml document's format
Jul 29 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 2.5K+
P: 4,871
I would have thought that you would use an xml schema. Here is an article that may help:
XML Schema Tutorial
Jul 30 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.