If you have done any work with XML within CFMX you will no doubt have used CFDUMP to view the XML Document Object. However, what's not well known is that CFDUMP has two different views for XML; long and short. Here's how to get to both!
[Short Version] is the default view that you get when you dump an XML object in CFMX. It shows the XML elements in a traditional format.
![CFDUMP of XML in [Short Version]](cfmx_xmldoc_short_tb.gif)
To get the long version view you need to click on the [Short Version] label. Clicking on the label cycles through SHORT >> LONG >> HIDE dump.
[Long Version] shows the entire DOM of the XML object, including the XMLChildren array for each element. This is great for trying to work out the correct way to programmatically reference elements within the XML document.
![CFDUMP of XML in [Long Version]](cfmx_xmldoc_long_tb.gif)
Nice feature I think you'll agree. It must be in the documentation somewhere.. but for the life of me I can't find it.
Posted by modius at 07:01 PM | Permalink
Trackback: http://blog.daemon.com.au/cgi-bin/dmblog/mt-tb.cgi/2


Ditto, I did find that when I was working on XMLParse() tho. By accident really.
Posted by: Todd on July 15, 2002 01:50 AM