<cfxml>
Creates a CFML XML document object that contains the markup in the tag body.
This tag can include XML and CFML tags.
Lucee processes the CFML code in the tag body, then assigns the resulting text to an XML document object variable.
This tag must have a body.
This tag is also supported within <cfscript>
<cfxml
variable=string
casesensitive=boolean
validator=string
lenient=boolean
><!--- body ---></cfxml>
Examples
<cfxml variable="xmlobject">
<office>
<employee>
<emp_name>lucee_dev</emp_name>
<emp_no>121</emp_no>
</employee>
</office>
</cfxml>
<cfdump var="#xmlobject#" />
See also
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)