Display Xml In Div

Body script function showxml xml data.
Display xml in div. Look at the xml file above in your browser. You can using jquery. Read xml data from a file using jquery ajax and show in div element categories ajax angular asp net autocomplete bootstrap browser charts crystal report css datepicker desktop google chart google map google tutorial gridview html5 javascript jquery json linq menus ms excel plug in responsive reviews send email smartphone sqlbulkcopy sqldatasource sql server vba wcf web api web service xml. So far so good.
Most browsers will display an xml document with color coded elements. But here comes the twist. Apart from displaying the xml in a modal my requirement was to provide a find functionality where user searched for any string and it should be highlighted on the screen a very common use case again. You can use javascript to load pure html in a div a display it within your page if you.
Its one of the easiest way to display xml data on an html page or a web page. Often a plus or minus sign to the left of the elements can be clicked to expand or collapse the element structure. However if you juts load it via a standard javascript in a div layer this is not working. Show your data here.
For example html body onload showxml div id mybooks div. Displaying indented xml data in webapp. While trying and playing with some div layers in html and handling xml xsl translations i found out that when you load a xml file containing a link to a xsl file to transform it to html in the browser it works fine.