cfxml

Creates a CFML XML document object that contains the
markup in the tag body. This tag can include XML and CFML tags.
CFML processes the CFML code in the tag body, then assigns
the resulting text to an XML document object variable.

  <cfxml variable="">

 cfxml(variable="");

Attribute Reference

variable string
Required

Name of an XML variable

casesensitive boolean
Default: false

Maintains the case of document elements and attributes

Examples
Sample code using the cfxml tag

Creates a new CFML XML document object.

cfxml( variable="myXml" ) {
 writeOutput( '<?xml version="1.0"?><catalog><song id="1"><artist>Astley, Rick</artist><title>Never Gonna Give You Up</title></song></catalog>' );
 } 
 writeDump( myXml );

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub