User Guide

Table Of Contents
ColdFusion XML format 725
The cftree tags
For applet and Flash format trees, ColdFusion inserts cftree controls in the XML as HTML
embed objects in <![CDATA[ sections in the tag body. The controls can be Java applets or in
Flash SWF format. The
cf:tree XML tag has two attributes: format, which can be Flash or
Applet, and
id.
For XML format trees, ColdFusion converts the CFML to XML in the following format:
cf:tree format="XML" id="treename>
<metadata>
<cftreeAttribute1>attributeValue</cftreeAttribute1>
...
</metadata>
<node cfml tree item attributes>
<node //nested node with no children
cfml tree item attributes />
...
</node>
...
</cf:tree>
The following example shows a minimal tree with two nodes:
CFML
<cfform name="form2" Format="XML" >
<cftree name="tree1" hscroll="No" vscroll="No" format="xml"
border="No">
<cftreeitem value="Divisions">
<cftreeitem value="Development"
parent="Divisions" img="folder">
</cftree>
</cfform>
XML
The following code shows only the XML that is related to the tree appearance:
<cf:tree format="xml" id="tree1">
<metadata>
<fontWeight/>
<align/>
<lookAndFeel>windows</lookAndFeel>
<delimiter>\</delimiter>
<completePath>false</completePath>
<border>false</border>
<hScroll>false</hScroll>
<vScroll>false</vScroll>
<appendKey>true</appendKey>
<highlightHref>true</highlightHref>
<italic>false</italic>
<bold>false</bold>
</metadata>
<node display="Divisions" expand="true" href="" img=""
imgOpen="" parent="" path="Divisions" queryAsRoot="true"
value="Divisions">