Skip to content

How to display an XML in HTML?


when I open up an XML file in IE or FireFox it does a nice pretty display where I can collapse the section and it’s color coded.

Is there a way to grab the html for this? e.g. if i wanted to take an XML file and display it in my own dummy browser that only took HTML. How would I do that?
"That’s not HTML, that is behavior coded into the browser program itself. It would take some serious coding to write something to duplicate that.

Most browsers will render XML that way, as will most XML editing tools."
– Handyman… ("top contributor")

you didn’t answer my question… i want to know is there an easy/existing way to generate HTML that *looks* like they way XML is displayed in IE or FireFox. I know most browsers display it that way… that was the basis of my question in fact. I’d like to mimic this behavior on my own generic browser.


67 Comments

  1. Ruan Caiman wrote:

    I think you’re asking for a generic Tree View that can be included on a standard HTML page, which displays similar to the XML views in FF.

    A quick web search for "AJAX Tree View" gives me a couple promising results (actually, there’s hundreds, but these are a couple I picked), one from Yahoo’s UI API and one from an O’Reilly text -

    http://developer.yahoo.com/yui/treeview/
    http://mattkruse.com/javascript/mktree/documentation.html

    feel free to clarify your question if that’s not what you were looking for.

    Monday, January 11, 2010 at 5:23 am | Permalink
  2. mike wrote:

    Easy way is to statically do it with ajax. Dreamweaver has spry tools that do it and you can even make html data files easy too.

    Monday, January 11, 2010 at 5:23 am | Permalink
  3. HandyManOrNot wrote:

    That’s not HTML, that is behavior coded into the browser program itself. It would take some serious coding to write something to duplicate that.

    Most browsers will render XML that way, as will most XML editing tools.

    Monday, January 11, 2010 at 5:23 am | Permalink
  4. a4586832 wrote:

    I’ve said that least 4586832 times. The problem this like that is they are just too compilcated for the average bird, if you know what I mean

    Monday, December 5, 2011 at 8:59 am | Permalink
  5. Hi superb website! Does running a blog like this require a large amount of work? I’ve very little understanding of computer programming however I had been hoping to start my own blog in the near future. Anyway, if you have any recommendations or techniques for new blog owners please share. I know this is off topic nevertheless I just needed to ask. Thanks a lot!

    Tuesday, December 6, 2011 at 9:17 am | Permalink
  6. You can find certainly lots of particulars like that to take into consideration. That could be a good level to deliver up. I offer the thoughts above as basic inspiration nonetheless clearly there are questions just like the 1 you bring up the spot the most crucial thing shall be working in sincere excellent faith. I don?t know if finest practices have emerged around issues like that, nonetheless I’m positive that your job is clearly recognized as a very good game. Both girls and boys genuinely feel the affect of just a second’s pleasure, for the remainder of their lives.

    Tuesday, December 6, 2011 at 11:31 am | Permalink
  7. foam chair wrote:

    I like your websites details! Undoubtedly an exquisite supply of data that is extraordinarily helpful. Cheers.

    Tuesday, December 6, 2011 at 4:04 pm | Permalink
  8. Extremely neat write-up.Truly looking forward to read much more. Great.

    Tuesday, December 6, 2011 at 5:48 pm | Permalink
  9. Hey are using WordPress for your site platform? I’m new to the blog world but I’m trying to get started and create my own. Do you require any html coding expertise to make your own blog? Any help would be really appreciated!

    Tuesday, December 6, 2011 at 9:26 pm | Permalink
  10. office desk wrote:

    I’m continue studying from you, and I’m educating myself. I actually love reading everything that’s written on your blog. Keep the posts coming. I love it!

    Tuesday, December 6, 2011 at 10:48 pm | Permalink
  11. I’ve been thinking about this for quite some time, you may have just inspired me to give it a try.

    Wednesday, December 7, 2011 at 7:52 am | Permalink
  12. Admiring the commitment you put into your blog and in depth information you offer. It’s nice to come across a blog every once in a while that isn’t the same out of date rehashed material. Excellent read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

    Wednesday, December 7, 2011 at 8:08 am | Permalink
  13. Although working a business sounds cool and all that. But the reality is, I believe you have to form a agenda so that you just don’t get too involved. I liked that stuff you mentioned “life is stability”. Perhaps hiring someone do your work is a smart idea. http://www.fpssystems.getlisted.co.nz/install-heat-pump

    Wednesday, December 7, 2011 at 10:06 am | Permalink
  14. We are a group of volunteers and starting a new scheme in our community. Your site offered us with valuable information to work on. You’ve done an impressive job and our entire community will be thankful to you.

    Thursday, December 8, 2011 at 12:42 am | Permalink
  15. profile wrote:

    You made some decent points there. I seemed on the internet for the problem and found most people will associate with with your website.

    Thursday, December 8, 2011 at 3:52 am | Permalink
  16. Joanie Notik wrote:

    Somebody necessarily assist to make significantly posts I would state. That is the first time I frequented your web page and up to now? I amazed with the analysis you made to make this actual put up amazing. Great process!

    Thursday, December 8, 2011 at 3:54 am | Permalink
  17. F*ckin’ awesome things here. I’m very glad to see your post. Thanks a lot and i am looking forward to contact you. Will you kindly drop me a e-mail?

    Thursday, December 8, 2011 at 3:59 am | Permalink
  18. james sterba wrote:

    I appreciate the insightful post. Thanks.

    Thursday, December 8, 2011 at 11:17 am | Permalink
  19. Definitely, what a fantastic site and revealing posts, I definitely will bookmark your website.Best Regards!

    Thursday, December 8, 2011 at 12:14 pm | Permalink
  20. Wow, great content – I hope everybody can put up content like you. Sorry my english will not be that good, but I wish to add that you simply have a very good web site there. Nicely I got several web sites too, and if you are keen to trade hyperlinks with me, I would be more than pleased to comply. I hope to hear a positive reply from you.

    Thursday, December 8, 2011 at 12:25 pm | Permalink
  21. I’ll be following your blog. =) http://www.demo.getlisted.co.nz/pr-agencies-auckland

    Thursday, December 8, 2011 at 1:03 pm | Permalink
  22. I’ll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X, but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

    Thursday, December 8, 2011 at 4:18 pm | Permalink
  23. Rattling clean internet site , thankyou for this post.

    Thursday, December 8, 2011 at 7:16 pm | Permalink
  24. Excellent post je partage sur facebook

    Friday, December 9, 2011 at 1:08 am | Permalink
  25. I’m not a habitual commentor only could not brush aside a thing so deserving. Great post.

    Friday, December 9, 2011 at 5:17 am | Permalink
  26. Hey there would you mind sharing which blog platform you’re working with? I’m planning to start my own blog soon but I’m having a hard time choosing between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design and style seems different then most blogs and I’m looking for something unique. P.S My apologies for getting off-topic but I had to ask!

    Friday, December 9, 2011 at 5:34 am | Permalink
  27. I do accept as true with all the ideas you have introduced on your post. They’re very convincing and can certainly work. Nonetheless, the posts are too short for beginners. Could you please extend them a bit from subsequent time? Thank you for the post.

    Friday, December 9, 2011 at 7:18 am | Permalink
  28. I have been exploring for a bit for any high quality articles or blog posts on this sort of area . Exploring in Yahoo I at last stumbled upon this web site. Reading this information So i am happy to convey that I’ve an incredibly good uncanny feeling I discovered just what I needed. I most certainly will make sure to do not forget this site and give it a glance on a constant basis.

    Friday, December 9, 2011 at 7:53 am | Permalink
  29. Abdelhamid wrote:

    Would you mind if I quote a few of your blogposts as long as I provide credit and sources back to your webpage: http://www.learnxmlws.com/how-to-display-an-xml-in-html/. I’m going to aslo make certain to give you the appropriate anchor text link using your webpage title: How to display an XML in HTML? | Learn XML. Please be sure to let me know if this is acceptable with you. Thanks!

    Friday, December 9, 2011 at 11:02 am | Permalink
  30. I feel you should think about each subject as who use this sort of site usually use lots of totally different subjects. I recently build a logo new social bookmarking site. You’re welcome to look it and express your remark about it. http://www.aucklandforktruckhire.getlisted.co.nz/forklift-hire-auckland

    Friday, December 9, 2011 at 9:45 pm | Permalink
  31. listings wrote:

    Hello, Neat post. There is an issue along with your website in internet explorer, might test this… IE nonetheless is the marketplace chief and a big component of other people will omit your fantastic writing due to this problem.

    Saturday, December 10, 2011 at 12:42 am | Permalink
  32. Heidy Sabad wrote:

    I’m really impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Either way keep up the nice quality writing, it is rare to see a nice blog like this one these days..

    Saturday, December 10, 2011 at 8:16 am | Permalink
  33. Thanks for your entire hard work on this blog. Ellie really loves going through investigation and it’s really easy to see why. My partner and i notice all relating to the compelling mode you deliver important tips by means of your web site and even welcome response from some other people on this situation then our child is actually becoming educated a whole lot. Take advantage of the remaining portion of the year. You are always doing a great job.

    Saturday, December 10, 2011 at 6:20 pm | Permalink
  34. Hey there, You’ve done a fantastic job. I’ll definitely digg it and personally recommend to my friends. I’m sure they’ll be benefited from this site.

    Saturday, December 10, 2011 at 6:46 pm | Permalink
  35. Thanks for sharing this very good piece. Very inspiring! (as always, btw)

    Sunday, December 11, 2011 at 1:45 am | Permalink
  36. Thanks for spending the time to discuss this, I really feel strongly about it and love studying more on this topic. If doable, as you turn out to be an expert, would you mind updating your weblog with more details?

    Sunday, December 11, 2011 at 3:08 am | Permalink
  37. I needed to post you one tiny remark so as to say thank you once again just for the precious knowledge you’ve provided on this page. It is simply wonderfully open-handed with people like you to grant publicly exactly what a number of us would’ve marketed for an electronic book to get some profit for their own end, certainly considering that you might well have tried it in case you considered necessary. Those ideas also served to be a fantastic way to fully grasp that some people have the identical fervor just like my very own to figure out somewhat more concerning this matter. I am certain there are millions of more pleasurable periods up front for those who examine your website.

    Sunday, December 11, 2011 at 7:26 am | Permalink
  38. After study a few of the blog posts in your website now, and I really like your way of blogging. I bookmarked it to my bookmark website listing and can be checking back soon. Pls take a look at my website as well and let me know what you think.

    Sunday, December 11, 2011 at 8:37 am | Permalink
  39. AKO wrote:

    I found your weblog web site on google and examine a number of of your early posts. Proceed to maintain up the superb operate. I just extra up your RSS feed to my MSN Information Reader. In search of forward to studying extra from you afterward!

    Sunday, December 11, 2011 at 9:24 am | Permalink
  40. Once I originally commented I clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I get four emails with the same comment. Is there any manner you can take away me from that service? Thanks!

    Sunday, December 11, 2011 at 1:56 pm | Permalink
  41. lamp post wrote:

    You made some first rate points there. I looked on the web for the issue and located most people will associate with together with your website.

    Sunday, December 11, 2011 at 6:14 pm | Permalink
  42. This is getting a bit more subjective, but I much prefer the Zune Marketplace. The interface is colorful, has more flair, and some cool features like ‘Mixview’ that let you quickly see related albums, songs, or other users related to what you’re listening to. Clicking on one of those will center on that item, and another set of “neighbors” will come into view, allowing you to navigate around exploring by similar artists, songs, or users. Speaking of users, the Zune “Social” is also great fun, letting you find others with shared tastes and becoming friends with them. You then can listen to a playlist created based on an amalgamation of what all your friends are listening to, which is also enjoyable. Those concerned with privacy will be relieved to know you can prevent the public from seeing your personal listening habits if you so choose.

    Sunday, December 11, 2011 at 10:13 pm | Permalink
  43. Thanks for spending the time to discuss this, I really feel strongly about it and love reading more on this topic. If attainable, as you turn out to be an expert, would you mind updating your weblog with more details?

    Sunday, December 11, 2011 at 10:57 pm | Permalink
  44. Yup, you are accurate Google is the finest in support of blogging, Google’s weblog also come quickly in search engines too.

    Sunday, December 11, 2011 at 11:00 pm | Permalink
  45. I am impressed with this web site , very I am a big fan .

    Monday, December 12, 2011 at 3:16 am | Permalink
  46. cupcakes wrote:

    I like this website its a master peace ! Glad I noticed this on google .

    Monday, December 12, 2011 at 3:21 am | Permalink
  47. Hi there, I found your site via Google while searching for a related topic, your site came up, it looks good. I’ve bookmarked it in my google bookmarks.

    Monday, December 12, 2011 at 6:37 am | Permalink
  48. sex-toy wrote:

    you got me with this post

    Monday, December 12, 2011 at 6:39 am | Permalink
  49. Hot Chat wrote:

    http://www.visit-x-net.com/vipcamgirls/HeisseKurven.php

    Monday, December 12, 2011 at 9:58 am | Permalink
  50. You should take part in a contest for one of the best blogs on the web. I will recommend this web site!

    Monday, December 12, 2011 at 11:27 am | Permalink
  51. It’s hard to find knowledgeable people on this topic, but you sound like you know what you’re talking about! Thanks

    Monday, December 12, 2011 at 1:40 pm | Permalink
  52. How To Flirt wrote:

    Pricey good friend. I truly just as your posting and your existing web page all in all! That will write-up really is obviously composed and effortlessly comprehensible. Your Live journal type rocks ! too! Can be great to learn in which My wife and i will probably acquire the following. You should manage the particular great work. People need far more these kinds of site owners like everyone else on the internet and a smaller amount spammers. Excellent male!

    Monday, December 12, 2011 at 10:32 pm | Permalink
  53. Hello There. I found your blog using msn. This is an extremely well written article. I’ll make sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll definitely comeback.

    Tuesday, December 13, 2011 at 6:28 pm | Permalink
  54. You definitely know how to bring an issue to light and make it important. I cant believe youre not more popular because you definitely have the gift.

    Tuesday, December 13, 2011 at 7:36 pm | Permalink
  55. key cabinet wrote:

    Many thanks for making the effort to discuss this, I feel strongly about this and love studying a great deal more on this matter. If possible, as you gain knowledge, would you mind updating your website with a great deal more details? It’s very helpful for me.

    Tuesday, December 13, 2011 at 8:25 pm | Permalink
  56. Good article , thanks and we want more! Added to FeedBurner as well

    Wednesday, December 14, 2011 at 1:25 am | Permalink
  57. hey there and thank you in your information – I’ve definitely picked up anything new from proper here. I did alternatively expertise several technical issues using this web site, as I skilled to reload the site lots of occasions previous to I could get it to load correctly. I had been considering if your web host is OK? No longer that I am complaining, however slow loading cases times will very frequently affect your placement in google and could damage your quality score if advertising and ***********|advertising|advertising|advertising and *********** with Adwords. Anyway I’m including this RSS to my e-mail and can look out for a lot more of your respective intriguing content. Make sure you replace this again very soon..

    Wednesday, December 14, 2011 at 7:41 am | Permalink
  58. Oh my goodness! an amazing article. Thank you!

    Wednesday, December 14, 2011 at 7:48 am | Permalink
  59. ??? wrote:

    Thank you for every other magnificent article. Thanks !

    Wednesday, December 14, 2011 at 8:05 am | Permalink
  60. I must check with you here, which is not one thing I usually do! I get pleasure from studying a blog that can make people think. Also, thanks for allowing me to remark!

    Wednesday, December 14, 2011 at 8:59 am | Permalink
  61. I enjoy reading a post that will make people think. Also, thanks for allowing me to comment!

    Wednesday, December 14, 2011 at 9:00 am | Permalink
  62. There are a few intriguing points over time in the following paragraphs but My spouse and i don’t understand easily notice them all centre to be able to coronary heart. There is certainly several validity yet I am going to consider hold opinion until eventually My spouse and i explore this even more. Excellent content, thank you and also we want much more! Included with FeedBurner at the same time

    Wednesday, December 14, 2011 at 9:34 am | Permalink
  63. backlinks wrote:

    Excellent backlinks service – create Top search positions together with tremendous website traffic with our effective link building programs. Most powerful & economical link building solution ever! backlinksGod.com – search engine optimisation – inbound links – online promotion – search engine marketing techniques – social websites

    Wednesday, December 14, 2011 at 2:04 pm | Permalink
  64. Nice post. I study one thing on different blogs everyday. It can at all times be stimulating to read content from other writers and observe somewhat something from their blog.

    Wednesday, December 14, 2011 at 5:31 pm | Permalink
  65. I have been exploring for a bit for any high quality articles or blog posts on this kind of area . Exploring in Yahoo I at last stumbled upon this website. Reading this information So i’m happy to convey that I have a very good uncanny feeling I discovered exactly what I needed. I most certainly will make sure to do not forget this web site and give it a glance regularly.

    Wednesday, December 14, 2011 at 6:23 pm | Permalink
  66. I discovered your site from wikipedia and study a few of your other blogs. They’re cool. Pls continue this excellent work.

    Wednesday, December 14, 2011 at 7:10 pm | Permalink
  67. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your site? My blog site is in the very same niche as yours and my visitors would truly benefit from some of the information you present here. Please let me know if this okay with you. Thanks!

    Wednesday, December 14, 2011 at 8:28 pm | Permalink

Post a Comment

Your email is never published nor shared.