Home & blog  /  2011  /  Oct  /  view post  /

XML Tree - visualise and traverse your XML

posted: 18 Oct '11 21:49 tags: XML, tree, traversal, node

XMLTree, just posted in the scripts section, is a utility for visualising and traversing XML in tree format.

You point it to an XML file, or manually feed it XML, and it does the rest, turning your nodes into a traversable tree.

But it's more than that; you can stipulate callbacks to fire when a node is expanded/collapsed and/or clicked. Callbacks are passed certain standard arguments, such as a reference to the node that was clicked and the XPath to it.

Behold! I even made a lovely demo for you involving Nintendo characters:

You can also deep-link to a point or points within the tree, so that, on load, the tree opens at a specific point or points. By extension, this means the tree is refresh-friendly, i.e. it won't forget which nodes were open when you reload the page.

Head over here to download, get usage info or view a demo.

post new comment

Comments (1)

samson, at 19/10/'11 14:50, said:
firstobject XML editor eat your heart out.