Mar 042012
 

5 lines… display arbitrary XML trees on a web page… nice.   After fighting with so many others, a breath of fresh air.

<link rel='stylesheet' type='text/css' href='xmltree.css' />
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js'></script>
<script src='xmltree.js'></script>
<script>$(function() { new XMLTree({fpath: '/ness.xml', container: '#tree', startCollapsed: true}); });</script>
<div id='tree'></div>

Courtesy of  http://www.mitya.co.uk/scripts/XML-Tree—visualise-and-traverse-your-XML-186

 

 Posted by at 5:06 pm on March 4, 2012

Sorry, the comment form is closed at this time.