Click here to Skip to main content
15,896,402 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a Grid and a column in it open up a modal. I want to display XML in that modal which is stored as formatted string. I want it look like like a proper XML and it must collapse tags as well. How to do this ? I'm using Bootstrap 3, mvc5.
Posted
Comments
John C Rayan 29-Sep-15 5:04am    
You have to implement tree view using either CSS3 or JQuery. It is your choice. what have you tried.

1 solution

I hope this will help render Xml content onto the View


@Html.Raw(Html.Encode(XmlContentVariable))
 
Share this answer
 
Comments
Tejas Kanitkar 1-Oct-15 5:33am    
I am able to display XML content but i want the content as collapsible tags and highlighted too.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900