User Guide

Table Of Contents
ColdFusion XML format 717
xf:instance element
The XForms
xf:instance element contains information about the form data controls. Any
control that can submit data has a corresponding instance element. If the control has an initial
value, the instance element contains that value.
The
xf:instance element contains a single cf:data element that contains an element for each
data control:
cfgrid, most cfinput tag types, cfselect, cfslider, cftextarea, and cftree.
Each element name is the corresponding CFML tags
name attribute. For applet and Flash format
cfgrid and cftree tags, the element name is the value of the cf_param_name parameter of the
tree or grid’s Java applet object. Only
cfinput tags of types submit, image, reset and button do
not have instance data, because they cannot submit data.
Each element’s body contains the initial control data from the CFML tag’s
value attribute or its
equivalent. For example, for a
cfselect tag, the xf:instance element body is a comma-
delimited list that contains the
name attributes of all the option tags with a selected attribute.
For
submit and image buttons, the body contains the name attribute value.
The following example shows the
xf:instance element for the form shown in the figure in
About XML skinnable forms” on page 709:
<xf:instance>
<cf:data>
<firstname/>
<lastname/>
<email/>
<revision>Comment Form revision 12a</revision>
<satisfaction>very satisfied</satisfaction>
<thoughts>We really want to hear from you!</thoughts>
</cf:data>
xf:submission element
The
xf:submission element specifies the action when the form is submitted, and contains the
values of the
cfform action and method attributes.:
The following example shows the XML for the form shown in the figure in About XML
skinnable forms” on page 709:
<xf:submission
action="/_MyStuff/phase1/forms/XForms/FrameExamples/Figure1.cfm"
method="post"/>