17 January 2011

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;

</font> </font> </font> </font>Obsession</string> </var> </font> </font>...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> </font> </font>3620.7.</string> </var> </struct> </data> </wddxPacket></div> 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.

blog comments powered by Disqus