NewDawn
asked on
How can I show formatted and colored XML in a C# application?
I currently have a textbox in my app that is used to display XML. As you can imagine, the displayed XML doesn't look very nice. I want to add color to my display (similar to what you'd get if you displayed XML in any XML viewer or from within Visual Studio). Additional formatting would be nice, but isn't required. What is the simplest control or method for doing this?
You might be able to embed an Internet Explorer WebBrowser in your form, though I'd guess that was read-only...
If you just want to display - the easies method I believe is to use a web browser. You may apply a transformation style and you'll get nicely formatted colored xml. I can give you the solution.
However if you need to edit your xml the task is probably a bit more tricky. Not sure at the moment.
However if you need to edit your xml the task is probably a bit more tricky. Not sure at the moment.
ASKER
I need the XML to be editable.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'd search for ready solutions. There are some open sources. Check e.g.:
http://wareseeker.com/free-xml-editor-open-source/
http://wareseeker.com/Software-Development/xml-editor-1.20.zip/239071
http://wareseeker.com/free-xml-editor-open-source/
http://wareseeker.com/Software-Development/xml-editor-1.20.zip/239071