toXML
toXML is a ColdFusion component that translates various ColdFusion datatypes into XML strings. It can convert:
- arrays
- lists
- queries
- structs
You may download toXML using the link on the right hand side.
Examples
If q is a query object, this will return an XML string wrapped in a <fruits> tag with each row being wrapped in <fruit> tags:
<cfset xmlQuery = toXML.queryToXML(q, "fruits", "fruit")>
License
This application's license may be found in the license file. If you enjoy this application, please consider visiting my Amazon wishlist.