Spry 1.1 adds DataSet explorer tool

Adobe released a new prerelease of the Spry Ajax framework today. One of the things included in this release is a DataSet Explorer. Spry uses the xpath to flatten XML into JSON array structures that are used by the framework to display the data in a HTML format, such as tables.

This Explorer tool makes it easier to introspect the XML, and how nodes are named by the framework. It is like having a CFDUMP tag for Ajax.

The DataSetExplorer file is in the "samples/DataSetExplorer.html" path in the zip file.

Here is an example of a XML file I passed into the tool;

<wddxPacket version='1.0'>
<header/>
<data>
<struct type='coldfusion.runtime.TemplateProxy'>
<var name='EPISODE'>
<string>Obsession</string>
</var>
<var name='QUOTE'>
<string>...hesitation ... is an hereditary trait of your species, and suddenly faced by the unknown, or imminent danger, a human will invariably experience a split second of indecision. He hesitates.</string>
</var>
<var name='STARDATE'>
<string>3620.7.</string>
</var>
</struct>
</data>
</wddxPacket>

It will show the structure of the XML in a format like this;

wddxPacket
@version
header
data
struct
@type
var (REPEATING NODE)
@name
string

You can click on any of the nodes and it will show you the data in that structure.

Comments
BlogCFC was created by Raymond Camden. This blog is running version 5.6.001.