As of ColdFusion MX, there are several tags and functions that make working with XML a snap. In this tutorial I am going to demonstrate how to use these tools to generate an XML document.
The first step is to write a query to get the data we want to export. We are going to export a list of books from the cfbookclub database that comes with ColdFusion.
It's my understanding that there can be no output to the browser prior to the <?xml tag. So I use the cfprocessingdirective tag to suppress whitespace.
I also use the CFContent tag and its type and reset attributes just before outputting the XML.
Lastly you may want to use the caseSensitive attribute of the CFXML tag if the consumer of the XML needs to have the XML element names in a specific case.
See: http://livedocs.adobe.com/coldfusion/7/htmldocs/00...
and http://livedocs.adobe.com/coldfusion/7/htmldocs/00...
and
http://livedocs.adobe.com/coldfusion/7/htmldocs/00...
RSS format? (using Dreamweaver)